Skip to content

Commit

Permalink
Fix up.
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec committed Nov 7, 2024
1 parent 1a9b717 commit bd493c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytket/pytket/circuit/logic_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,9 @@ def create_bit_logic_exp(op: BitWiseOp, args: Sequence[BitArgType]) -> BitLogicE
if op == BitWiseOp.ZERO:
assert len(args) == 0
return BitZero()
if op == BitWiseOp.ONE:
if op == BitWiseOp.ONE: # noqa: RET503
assert len(args) == 0
return BitOne()
return None


def create_reg_logic_exp(op: RegWiseOp, args: Sequence[RegArgType]) -> RegLogicExp:
Expand Down

0 comments on commit bd493c4

Please sign in to comment.