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
Type of a generic path-like object |
|
Datetime serde. |
|
Nullable datetime serde. |
|
MPID / AlphaID serde. |
|
Annotation for free-form JSON-like dict (INCAR-like, ddec6, etc.) |
|
Annotation for free-form JSON-like list (some custodian metadata) |
Functions
Render a composite MP identifier in the requested format, preserving the suffix. |
|
Render an MP identifier as either the legacy mp-<int> form or the padded AlphaID form. |
|
Render a calculation task id in either legacy or new alpha form. |
|
Serde for compound identifier types. |
Classes
Define layout of compound identifiers for static type analysis. |
|
int([x]) -> integer int(x, base=10) -> integer |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |