is_dataflow_op¶
- hugr.ops.is_dataflow_op(op: Any) TypeGuard[DataflowOp] [source]¶
Returns true if the object is an instance of
DataflowOp
.This is functionally equivalent to matching on DataflowOp() directly, but calling isinstance(_, DataflowOp) errors out in python <=3.11 due to how runtime_checkable Protocols were implemented. See <https://github.com/python/cpython/issues/102433>