OpDefSig#

class hugr.ext.OpDefSig(poly_func: PolyFuncType | FunctionType | None, binary: bool = False)[source]#

Bases: object

Type signature of an OpDef.

Parameters:
  • poly_func – The polymorphic function type of the operation.

  • binary – If no static type scheme known, flag indicates a computation of the signature

Methods

Attributes

poly_func

The polymorphic function type of the operation (type scheme).

binary

If no static type scheme known, flag indicates a computation of the signature.

binary: bool#

If no static type scheme known, flag indicates a computation of the signature.

poly_func: PolyFuncType | None#

The polymorphic function type of the operation (type scheme).