TupleArg

class hugr.tys.TupleArg(elems: list[TypeArg])[source]

Bases: TypeArg

Sequence of type arguments for a TupleParam.

Methods

render

Render the nested tuple arguments.

resolve

Resolve types in the argument using the given registry.

to_model

Convert the type argument to a model Term.

Attributes

elems

render(*, extension_version: bool = False, qualified_name: bool = False) str[source]

Render the nested tuple arguments.

resolve(registry: ext.ExtensionRegistry) TypeArg

Resolve types in the argument using the given registry.

to_model() Term[source]

Convert the type argument to a model Term.