Skip to content

Commit 865188e

Browse files
Remove useless suppression for python 3.8
1 parent a619d59 commit 865188e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

astroid/nodes/node_ng.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
from astroid import nodes
3434

3535
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
36+
from typing import NoReturn
3837
else:
3938
from typing_extensions import NoReturn
4039

@@ -445,7 +444,7 @@ def _fixed_source_line(self) -> Optional[int]:
445444
We need this method since not all nodes have :attr:`lineno` set.
446445
"""
447446
line = self.lineno
448-
_node: Optional[NodeNG] = self # pylint: disable = used-before-assignment
447+
_node: Optional[NodeNG] = self
449448
try:
450449
while line is None:
451450
_node = next(_node.get_children())

0 commit comments

Comments
 (0)