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

@ -15,10 +15,11 @@ the cachew cache
REQUIRES = ["git+https://github.com/seanbreckenridge/google_takeout_parser"]
from contextlib import ExitStack
from dataclasses import dataclass
import os
from typing import List, Sequence, cast
from pathlib import Path
from my.core import make_config, dataclass, stat, Stats
from my.core import make_config, stat, Stats
from my.core.cachew import mcachew
from my.core.common import LazyLogger, get_files, Paths
from my.core.error import ErrorPolicy