ExtensionObject#

class hugr.ext.ExtensionObject[source]#

Bases: object

An object associated with an Extension.

Methods

get_extension

Retrieve the extension associated with the object.

get_extension() Extension[source]#

Retrieve the extension associated with the object.

Returns:

The extension associated with the object.

Raises:

NoParentExtension – If the object is not associated with an extension.