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