emmet.core.types.typing

Define custom type annotations for emmet-core.

Note that only type annotations which are used across the code base should be put here.

Types which only have one purpose / exist only within one module, can and should remain in that module.

Module Attributes

FSPathType

Type of a generic path-like object

DateTimeType

Datetime serde.

NullableDateTimeType

Nullable datetime serde.

IdentifierType

MPID / AlphaID serde.

JsonDictType

Annotation for free-form JSON-like dict (INCAR-like, ddec6, etc.)

JsonListType

Annotation for free-form JSON-like list (some custodian metadata)

Classes

TYPE_CHECKING

bool(x) -> bool

TypedBandDict

Type def for data stored for cbms or vbms