faust.models.typing
¶
Parsing Type Expressions.
This module contains tools for parsing type expressions such as
List[Mapping[str, Tuple[int, Tuple[str, str]]]]
,
then converting that to a generator expression that can be used
to deserialize such a structure.
-
class
faust.models.typing.
NodeType
[source]¶ An enumeration.
-
ROOT
= 'ROOT'¶
-
UNION
= 'UNION'¶
-
ANY
= 'ANY'¶
-
LITERAL
= 'LITERAL'¶
-
DATETIME
= 'DATETIME'¶
-
DECIMAL
= 'DECIMAL'¶
-
NAMEDTUPLE
= 'NAMEDTUPLE'¶
-
TUPLE
= 'TUPLE'¶
-
SET
= 'SET'¶
-
DICT
= 'DICT'¶
-
LIST
= 'LIST'¶
-
MODEL
= 'MODEL'¶
-
USER
= 'USER'¶
-
-
class
faust.models.typing.
TypeExpression
(expr: Type, root: Optional[faust.models.typing.RootNode] = None, *, user_types: MutableMapping[Union[Type, Tuple[Type, ...]], Callable[Any, Any]] = None, date_parser: Callable[Any, datetime.datetime] = None) → None[source]¶ -
DEFAULT_NODE
¶ alias of
LiteralNode
-
type
= 'ROOT'¶
-
compatible_types
= ()¶
-