Skip to content

Commit

Permalink
Revert "Revert "Remove useless NoReturn in NodeNG.statement's typing (#…
Browse files Browse the repository at this point in the history
…1304)" (#1307)" (#1319)

This reverts commit 7b049a1.
  • Loading branch information
tushar-deepsource authored Dec 29, 2021
1 parent 12e2e8c commit 7afd696
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions astroid/nodes/node_ng.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
if TYPE_CHECKING:
from astroid import nodes

if sys.version_info >= (3, 6, 2):
from typing import NoReturn
else:
from typing_extensions import NoReturn

if sys.version_info >= (3, 8):
from typing import Literal
else:
Expand Down Expand Up @@ -289,7 +284,7 @@ def statement(self, *, future: Literal[True]) -> "nodes.Statement":

def statement(
self, *, future: Literal[None, True] = None
) -> Union["nodes.Statement", "nodes.Module", "NoReturn"]:
) -> Union["nodes.Statement", "nodes.Module"]:
"""The first parent node, including self, marked as statement node.
TODO: Deprecate the future parameter and only raise StatementMissing and return
Expand Down

0 comments on commit 7afd696

Please sign in to comment.