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 committed by karlicoss
parent 2b0f92c883
commit 614c929f95
15 changed files with 78 additions and 56 deletions

View file

@ -5,8 +5,8 @@ from decimal import Decimal
from typing import Any, Optional, Callable, NamedTuple
from functools import lru_cache
from .common import is_namedtuple
from .error import error_to_json
from .types import is_namedtuple
from .pytest import parametrize
# note: it would be nice to combine the 'asdict' and _default_encode to some function