We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46d73d8 commit 5461a80Copy full SHA for 5461a80
astroid/rebuilder.py
@@ -1381,7 +1381,7 @@ def _find_orelse_keyword(
1381
start = node.orelse[0].lineno
1382
1383
# pylint: disable-next=unsubscriptable-object
1384
- for index, line in enumerate(self._data[start:node.lineno:-1]):
+ for index, line in enumerate(self._data[start : node.lineno : -1]):
1385
if line.rstrip().startswith("else"):
1386
return start - index + 1, line.index("else")
1387
if line.rstrip().startswith("elif"):
0 commit comments