Skip to content

Commit 3a873c6

Browse files
Add pragma
1 parent 4fb738d commit 3a873c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroid/protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def tl_infer_binary_op(
230230
as_index = helpers.class_instance_as_index(other)
231231
if not as_index:
232232
yield util.Uninferable
233-
elif not isinstance(as_index.value, int):
233+
elif not isinstance(as_index.value, int): # pragma: no cover
234234
# already checked by class_instance_as_index() but faster than casting
235235
raise AssertionError("Please open a bug report.")
236236
else:

0 commit comments

Comments
 (0)