ts_ids_core.base.ids_undefined_type module

IDS_UNDEFINED = IdsUndefined

Sentinel indicating that a field’s value is unknown or irrelevant. This is distinct from a field being NULL (None).

class IdsUndefinedType[source]

Bases: object

Placeholder indicating that the the value of the ts_ids_core.base.ids_element.IdsElement field is unknown or non-existent.

This is distinct from the ts_ids_core.base.ids_element.IdsElement’s field being None.

This was partially copied from pydantic.fields.UndefinedType. It intentionally does not inherit from pydantic.fields.UndefinedType so that it fails isinstance() and issubclass() checks.

JSON_SCHEMA_TYPE = 'Undefined'

An instance’s ‘type’ in JSON Schema.

PYDANTIC_UNDEFINED = PydanticUndefined

By default, pydantic passes default=PYDANTIC_UNDEFINED to the Field function and the FieldInfo constructor.