core.common: move Json, datetime_aware, datetime_naive, is_namedtuple, asdict to my.core.types
This commit is contained in:
parent
2b0f92c883
commit
614c929f95
15 changed files with 78 additions and 56 deletions
|
@ -1,8 +1,10 @@
|
|||
'''
|
||||
Timezone data provider, used to localize timezone-unaware timestamps for other modules
|
||||
'''
|
||||
|
||||
from datetime import datetime
|
||||
from my.core.common import datetime_aware
|
||||
|
||||
from my.core import datetime_aware
|
||||
|
||||
# todo hmm, kwargs isn't mypy friendly.. but specifying types would require duplicating default args. uhoh
|
||||
def localize(dt: datetime, **kwargs) -> datetime_aware:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue