types¶
Type aliases and constants used in the package config.
- class advanced_alchemy.config.types.Mapping[source]¶
Bases:
CollectionA 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,CollectionAll 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:
objectSpecial type indicating an unconstrained type.
Any is assignable to every type.
Any assumed to have all methods and attributes.
All values are assignable to Any.
Note that all the above statements are true from the point of view of static type checkers. At runtime, Any cannot be used with instance checks.
- advanced_alchemy.config.types.TypeEncodersMap¶
Type alias for a mapping of type encoders.
Maps types to their encoder functions.