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 committed by karlicoss
parent 7f8a502310
commit 2b0f92c883
10 changed files with 34 additions and 18 deletions

View file

@ -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