Skip to content

Commit

Permalink
Add pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored Jun 28, 2023
1 parent 4fb738d commit 3a873c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def tl_infer_binary_op(
as_index = helpers.class_instance_as_index(other)
if not as_index:
yield util.Uninferable
elif not isinstance(as_index.value, int):
elif not isinstance(as_index.value, int): # pragma: no cover
# already checked by class_instance_as_index() but faster than casting
raise AssertionError("Please open a bug report.")
else:
Expand Down

0 comments on commit 3a873c6

Please sign in to comment.