Skip to content
YosoiDocs

RuntimeZeroOrOne

yosoi.contracts.RuntimeZeroOrOne

RuntimeZeroOrOne = _runtime_contracts.RuntimeZeroOrOne

Carry an optional field after cardinality and conversion checks.

Attributes: cardinality: Wire discriminator for zero-or-one cardinality. value: Validated value, or None when the optional field has no evidence.

Source: python/yosoi/contracts.py:1582

Definition

Source: python/yosoi/runtime_contracts.py:105