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