summaryrefslogtreecommitdiff
path: root/astroid
diff options
context:
space:
mode:
authorTushar Sadhwani <86737547+tushar-deepsource@users.noreply.github.com>2021-12-29 14:06:47 +0530
committerGitHub <noreply@github.com>2021-12-29 09:36:47 +0100
commit7afd696520f70a46334adea6d39f7150379198f3 (patch)
treee4a29637f64ca42bd8d85eaa15c29cad12c4c8a2 /astroid
parent12e2e8ce8a33b06c9b3d97007ca89120b529c215 (diff)
downloadastroid-git-7afd696520f70a46334adea6d39f7150379198f3.tar.gz
Revert "Revert "Remove useless NoReturn in NodeNG.statement's typing (#1304)" (#1307)" (#1319)
This reverts commit 7b049a163cc704955a4260992302ff755f6a6789.
Diffstat (limited to 'astroid')
-rw-r--r--astroid/nodes/node_ng.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/astroid/nodes/node_ng.py b/astroid/nodes/node_ng.py
index 3c26f340..eb2a5fd8 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