We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fb738d commit 3a873c6Copy full SHA for 3a873c6
astroid/protocols.py
@@ -230,7 +230,7 @@ def tl_infer_binary_op(
230
as_index = helpers.class_instance_as_index(other)
231
if not as_index:
232
yield util.Uninferable
233
- elif not isinstance(as_index.value, int):
+ elif not isinstance(as_index.value, int): # pragma: no cover
234
# already checked by class_instance_as_index() but faster than casting
235
raise AssertionError("Please open a bug report.")
236
else:
0 commit comments