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

21 lines
547 B
Python
Raw Normal View History

2022-03-22 15:13:27 +00:00
from typing import Any, Callable, Optional, Union
from mashumaro.types import SerializationStrategy
def field_options(
serialize: Optional[Callable[[Any], Any]] = None,
deserialize: Optional[Union[str, Callable[[Any], Any]]] = None,
serialization_strategy: Optional[SerializationStrategy] = None,
alias: Optional[str] = None,
):
return {
"serialize": serialize,
"deserialize": deserialize,
"serialization_strategy": serialization_strategy,
"alias": alias,
}
__all__ = ["field_options"]