my.core: deprecate Path/dataclass imports from my.core during type checking
runtime still works for backwards compatibility
This commit is contained in:
parent
7f8a502310
commit
2b0f92c883
10 changed files with 34 additions and 18 deletions
|
@ -4,9 +4,10 @@ Converts IP addresses provided by my.location.ip to estimated locations
|
|||
|
||||
REQUIRES = ["git+https://github.com/seanbreckenridge/ipgeocache"]
|
||||
|
||||
from dataclasses import dataclass
|
||||
from datetime import timedelta
|
||||
|
||||
from my.core import dataclass, Stats, make_config
|
||||
from my.core import Stats, make_config
|
||||
from my.config import location
|
||||
from my.core.warnings import medium
|
||||
|
||||
|
|
|
@ -7,12 +7,13 @@ Extracts semantic location history using google_takeout_parser
|
|||
|
||||
REQUIRES = ["git+https://github.com/seanbreckenridge/google_takeout_parser"]
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import Iterator, List
|
||||
|
||||
from my.google.takeout.parser import events, _cachew_depends_on as _parser_cachew_depends_on
|
||||
from google_takeout_parser.models import PlaceVisit as SemanticLocation
|
||||
|
||||
from my.core import dataclass, make_config, stat, LazyLogger, Stats
|
||||
from my.core import make_config, stat, LazyLogger, Stats
|
||||
from my.core.cachew import mcachew
|
||||
from my.core.error import Res
|
||||
from .common import Location
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue