summaryrefslogtreecommitdiff
path: root/astroid/nodes
diff options
context:
space:
mode:
authorNick Drozd <nicholasdrozd@gmail.com>2022-11-29 00:01:00 -0600
committerDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2023-04-05 22:55:10 +0200
commit51d8507c6baae6847601e0de7e319d1a5c7f7f5b (patch)
treef526d55ac35261e308eb676a7af4c651678737db /astroid/nodes
parent8272219e9b60ac476774fa181710c6fed05215ad (diff)
downloadastroid-git-51d8507c6baae6847601e0de7e319d1a5c7f7f5b.tar.gz
Mandatory field for Expr
Diffstat (limited to 'astroid/nodes')
-rw-r--r--astroid/nodes/node_classes.py40
1 files changed, 3 insertions, 37 deletions
diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py
index de07b052..0cecb025 100644
--- a/astroid/nodes/node_classes.py
+++ b/astroid/nodes/node_classes.py
@@ -2023,44 +2023,10 @@ class Expr(_base_nodes.Statement):
_astroid_fields = ("value",)
- def __init__(
- self,
- lineno: int | None = None,
- col_offset: int | None = None,
- parent: NodeNG | None = None,
- *,
- end_lineno: int | None = None,
- end_col_offset: int | None = None,
- ) -> None:
- """
- :param lineno: The line that this node appears on in the source code.
-
- :param col_offset: The column that this node appears on in the
- source code.
-
- :param parent: The parent node in the syntax tree.
-
- :param end_lineno: The last line this node appears on in the source code.
-
- :param end_col_offset: The end column this node appears on in the
- source code. Note: This is after the last symbol.
- """
- self.value: NodeNG | None = None
- """What the expression does."""
-
- super().__init__(
- lineno=lineno,
- col_offset=col_offset,
- end_lineno=end_lineno,
- end_col_offset=end_col_offset,
- parent=parent,
- )
-
- def postinit(self, value: NodeNG | None = None) -> None:
- """Do some setup after initialisation.
+ value: NodeNG
+ """What the expression does."""
- :param value: What the expression does.
- """
+ def postinit(self, value: NodeNG) -> None:
self.value = value
def get_children(self):