None_¶
- class hugr.val.None_(*types: Type)[source]¶
Bases:
SumOptional tuple of value, containing no values.
Example
>>> none = None_(tys.Bool) >>> str(none) 'None' >>> none.type_() Option(Bool)
Methods
to_modelReport the type of the value.
Attributes
n_variantsTag identifying the variant.
defines all possible variants.
The values of this variant row.