types¶
Type aliases and constants used in the package config.
- class advanced_alchemy.config.types.Mapping[source]¶
Bases:
Collection
A Mapping is a generic container for associating key/value pairs.
This class provides concrete generic implementations of all methods except for __getitem__, __iter__, and __len__.
- class advanced_alchemy.config.types.Sequence[source]¶
Bases:
Reversible
,Collection
All the operations on a read-only sequence.
Concrete subclasses must override __new__ or __init__, __getitem__, and __len__.
- class advanced_alchemy.config.types.Any[source]¶
Bases:
object
Special type indicating an unconstrained type.
Any is compatible with every type.
Any assumed to have all methods.
All values assumed to be instances of Any.
Note that all the above statements are true from the point of view of static type checkers. At runtime, Any should not be used with instance checks.
- advanced_alchemy.config.types.TypeEncodersMap¶
Type alias for a mapping of type encoders.
Maps types to their encoder functions.