dbt-selly/dbt-env/lib/python3.8/site-packages/mashumaro/config.py

20 lines
554 B
Python
Raw Normal View History

2022-03-22 15:13:27 +00:00
from typing import Any, Callable, Dict, List, Union
from mashumaro.types import SerializationStrategy
TO_DICT_ADD_OMIT_NONE_FLAG = "TO_DICT_ADD_OMIT_NONE_FLAG"
TO_DICT_ADD_BY_ALIAS_FLAG = "TO_DICT_ADD_BY_ALIAS_FLAG"
SerializationStrategyValueType = Union[
SerializationStrategy, Dict[str, Union[str, Callable]]
]
class BaseConfig:
debug: bool = False
code_generation_options: List[str] = []
serialization_strategy: Dict[Any, SerializationStrategyValueType] = {}
aliases: Dict[str, str] = {}
serialize_by_alias: bool = False