latch.registry.upstream_types package#

Submodules#

latch.registry.upstream_types.types module#

class latch.registry.upstream_types.types.PrimitiveTypeBasic[source]#

Bases: TypedDict

primitive: Literal['string'] | Literal['integer'] | Literal['number'] | Literal['datetime'] | Literal['blob'] | Literal['date'] | Literal['null'] | Literal['boolean']#
metadata: NotRequired[Dict[str, JsonValue]]#

Bases: TypedDict

primitive: Literal['link']#
experimentId: str#
metadata: NotRequired[Dict[str, JsonValue]]#
class latch.registry.upstream_types.types.PrimitiveTypeEnum[source]#

Bases: TypedDict

primitive: Literal['enum']#
members: List[str]#
metadata: NotRequired[Dict[str, JsonValue]]#
class latch.registry.upstream_types.types.UnionType[source]#

Bases: TypedDict

union: Dict[str, PrimitiveTypeBasic | PrimitiveTypeLink | PrimitiveTypeEnum | UnionType | ArrayType]#
class latch.registry.upstream_types.types.ArrayType[source]#

Bases: TypedDict

array: PrimitiveTypeBasic | PrimitiveTypeLink | PrimitiveTypeEnum | UnionType | ArrayType#
class latch.registry.upstream_types.types.DBType[source]#

Bases: TypedDict

type: PrimitiveTypeBasic | PrimitiveTypeLink | PrimitiveTypeEnum | UnionType | ArrayType#
allowEmpty: bool#

latch.registry.upstream_types.values module#

class latch.registry.upstream_types.values.InvalidValue[source]#

Bases: TypedDict

rawValue: str#
valid: Literal[False]#
class latch.registry.upstream_types.values.PrimitiveStringValueValid[source]#

Bases: TypedDict

value: str#
valid: Literal[True]#
class latch.registry.upstream_types.values.PrimitiveNumberValueValid[source]#

Bases: TypedDict

value: float#
valid: Literal[True]#
class latch.registry.upstream_types.values.PrimitiveNullValueValid[source]#

Bases: TypedDict

value: None#
valid: Literal[True]#
class latch.registry.upstream_types.values.PrimitiveBooleanValueValid[source]#

Bases: TypedDict

value: bool#
valid: Literal[True]#
class latch.registry.upstream_types.values.BlobValue[source]#

Bases: TypedDict

ldataNodeId: str#
class latch.registry.upstream_types.values.PrimitiveBlobValueValid[source]#

Bases: TypedDict

value: BlobValue#
valid: Literal[True]#
class latch.registry.upstream_types.values.LinkValue[source]#

Bases: TypedDict

sampleId: str#
class latch.registry.upstream_types.values.PrimitiveLinkValueValid[source]#

Bases: TypedDict

value: LinkValue#
valid: Literal[True]#
class latch.registry.upstream_types.values.PrimitiveEnumValueValid[source]#

Bases: TypedDict

value: str#
valid: Literal[True]#
class latch.registry.upstream_types.values.UnionValue[source]#

Bases: TypedDict

tag: str#
value: PrimitiveStringValueValid | InvalidValue | PrimitiveNumberValueValid | PrimitiveNullValueValid | PrimitiveBlobValueValid | PrimitiveLinkValueValid | PrimitiveEnumValueValid | PrimitiveBooleanValueValid | List[DBValue] | UnionValue#
class latch.registry.upstream_types.values.EmptyCell[source]#

Bases: object

Empty Registry Record value. Singleton.

The constructor returns a referentially identical instance each call. That is, EmptyCell() is EmptyCell()

Used to distinguish explicit None values from missing values.

Module contents#