my.core: deprecate Path/dataclass imports from my.core during type checking

runtime still works for backwards compatibility
This commit is contained in:
Dima Gerasimov 2024-08-16 00:14:44 +03:00
parent ac64b08915
commit 432c64ef56
10 changed files with 34 additions and 18 deletions

View file

@ -4,8 +4,11 @@ Parse [[https://github.com/mendhak/gpslogger][gpslogger]] .gpx (xml) files
REQUIRES = ["gpxpy"]
from dataclasses import dataclass
from my.config import location
from my.core import Paths, dataclass
from my.core import Paths
@dataclass