Symbol¶
- class hugr.model.Symbol(name: str, visibility: ~typing.Literal['Public', 'Private'], params: ~collections.abc.Sequence[~hugr.model.Param] = <factory>, constraints: ~collections.abc.Sequence[~hugr.model.Term] = <factory>, signature: ~hugr.model.Term = <factory>, version: ~semver.version.Version | None = None)[source]¶
Bases:
objectA named symbol.
- params¶
The parameters of the symbol.
- constraints¶
The constraints on the symbol’s parameters.
- signature¶
The signature of the symbol.
- Type:
- version¶
The extension version where this symbol was declared, if any.
- Type:
semver.version.Version | None
Methods
Read the symbol from its string representation.
Attributes