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 a619d59 commit 865188eCopy full SHA for 865188e
astroid/nodes/node_ng.py
@@ -33,8 +33,7 @@
33
from astroid import nodes
34
35
if sys.version_info >= (3, 6, 2):
36
- # To be fixed with https://github.com/PyCQA/pylint/pull/5316
37
- from typing import NoReturn # pylint: disable=unused-import
+ from typing import NoReturn
38
else:
39
from typing_extensions import NoReturn
40
@@ -445,7 +444,7 @@ def _fixed_source_line(self) -> Optional[int]:
445
444
We need this method since not all nodes have :attr:`lineno` set.
446
"""
447
line = self.lineno
448
- _node: Optional[NodeNG] = self # pylint: disable = used-before-assignment
+ _node: Optional[NodeNG] = self
449
try:
450
while line is None:
451
_node = next(_node.get_children())
0 commit comments