Kind
- class emmet.core.types.introspection.Kind(*values)
Bases:
EnumThe kind of a type, see classify.
- ANY = 1
typing.Any
- SEQUENCE = 2
Homogeneous container: list[X], set[X], tuple[X, …], … args = (X,), or () if unparametrized.
- TUPLE = 3
Fixed length tuple tuple[X, Y, …]. args are the positional types.
- MAPPING = 4
dict[K, V], Mapping[K, V]. args = (K, V), or () if unparametrized.
- LITERAL = 5
Literal[…]. args are the literal values.
- UNION = 6
X | Y, Optional[X]. args are the members, without None.
- ANNOTATED = 7
Annotated[X, …]. args = (X,), metadata holds the annotations.
- ENUM = 8
An Enum subclass.
- MODEL = 9
A pydantic model. See TypeShape.fields.
- TYPEDDICT = 10
A TypedDict. See TypeShape.fields.
- MSONABLE = 11
An MSONable class. args = (X,) where X is the annotation of its type adapter, or () if it has none.
- CLASS = 12
Any other class, e.g. int, str, Path. origin is the class.
- OTHER = 13
Anything not recognized.