Extension

class hugr.val.Extension(name: str, typ: Type, val: Any)[source]

Bases: Value

Non-core extension value.

Methods

to_model

type_

Report the type of the value.

Attributes

name

Value name.

typ

Value type.

val

Value payload.

name: str

Value name.

typ: Type

Value type.

type_() Type[source]

Report the type of the value.

Example

>>> TRUE.type_()
Bool
val: Any

Value payload.