diff options
author | Tushar Sadhwani <86737547+tushar-deepsource@users.noreply.github.com> | 2021-12-20 15:55:17 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 11:25:17 +0100 |
commit | df854be56ee5019fb7f578ffd4da068e46ed112a (patch) | |
tree | f1bf0cf11b8a8332ab57cedd25c7c89d47aabf73 | |
parent | 2f5f2405d18f673560302e2f4e19d672f43c90d9 (diff) | |
download | astroid-git-df854be56ee5019fb7f578ffd4da068e46ed112a.tar.gz |
Remove useless NoReturn in NodeNG.statement's typing (#1304)
-rw-r--r-- | astroid/nodes/node_ng.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/astroid/nodes/node_ng.py b/astroid/nodes/node_ng.py index 5eb6d198..dfc84bf1 100644 --- a/astroid/nodes/node_ng.py +++ b/astroid/nodes/node_ng.py @@ -32,11 +32,6 @@ from astroid.nodes.const import OP_PRECEDENCE 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: @@ -289,7 +284,7 @@ class NodeNG: 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 |