core.common: move Json, datetime_aware, datetime_naive, is_namedtuple, asdict to my.core.types

This commit is contained in:
Dima Gerasimov 2024-08-16 11:46:29 +03:00
parent 432c64ef56
commit e0d1dbd533
15 changed files with 78 additions and 56 deletions

View file

@ -7,7 +7,7 @@ REQUIRES = [
from dataclasses import dataclass
from my.core import Paths
from my.core import datetime_aware, Paths
from my.config import goodreads as user_config
@dataclass
@ -61,7 +61,6 @@ def books() -> Iterator[dal.Book]:
#######
# todo ok, not sure these really belong here...
from my.core.common import datetime_aware
@dataclass
class Event:
dt: datetime_aware