my.core: deprecate Path/dataclass imports from my.core during type checking
runtime still works for backwards compatibility
This commit is contained in:
parent
ac64b08915
commit
432c64ef56
10 changed files with 34 additions and 18 deletions
|
@ -6,6 +6,7 @@ REQUIRES = ['ijson', 'cffi']
|
|||
# NOTE likely also needs libyajl2 from apt or elsewhere?
|
||||
|
||||
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import Sequence, Iterable, List, Optional
|
||||
|
||||
|
@ -22,8 +23,9 @@ def inputs() -> Sequence[Path]:
|
|||
return get_files(user_config.logfiles)
|
||||
|
||||
|
||||
from .core import dataclass, Json, PathIsh, datetime_aware
|
||||
from .core.compat import fromisoformat
|
||||
|
||||
from my.core import Json, PathIsh, datetime_aware
|
||||
from my.core.compat import fromisoformat
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue