Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf committed Dec 18, 2024
1 parent d4d3c38 commit 54f63a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytket/extensions/qiskit/qiskit_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def append_tk_command_to_qiskit(
qb = qregmap[qubit.reg_name][qubit.index[0]]
b = cregmap[bit.reg_name][bit.index[0]]
# If the bit is storing a range predicate it should be invalidated:
range_preds.pop(bit, None)
range_preds.pop(bit, None) # type: ignore
return qcirc.measure(qb, b)

if optype == OpType.Reset:
Expand Down
2 changes: 1 addition & 1 deletion tests/qiskit_convert_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ def test_nonregister_bits() -> None:
tk_to_qiskit(c)


def test_range_preds_with_conditionals():
def test_range_preds_with_conditionals() -> None:
# https://github.com/CQCL/pytket-qiskit/issues/375
c = Circuit(1, 1)
treg = c.add_c_register(_TEMP_BIT_NAME, 1)
Expand Down

0 comments on commit 54f63a5

Please sign in to comment.