Value

Contents

Value#

class hugr.val.Value(*args, **kwargs)[source]#

Bases: Protocol

Abstract value definition. Must be serializable into a HUGR value.

Methods

type_

Report the type of the value.

type_() Type[source]#

Report the type of the value.

Example

>>> TRUE.type_()
Bool