summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Drozd <nicholasdrozd@gmail.com>2023-04-03 21:26:11 -0400
committerDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2023-04-04 08:12:18 +0200
commit11c7a266400f3053e6881709de8b3efb1ff6d75f (patch)
tree8662bc9fd8ebafdc7b2b390d58d7d02f2801ebc1
parent81c6c8fb32d89c9db35c541a06b5d2e43180a5c1 (diff)
downloadastroid-git-11c7a266400f3053e6881709de8b3efb1ff6d75f.tar.gz
Manadatory fields for Await
-rw-r--r--ChangeLog1
-rw-r--r--astroid/nodes/node_classes.py40
2 files changed, 4 insertions, 37 deletions
diff --git a/ChangeLog b/ChangeLog
index d1d93408..36547957 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@ Release date: TBA
- ``nodes.AssignName``
- ``nodes.Attribute``
- ``nodes.AugAssign``
+ - ``nodes.Await``
- ``nodes.BinOp``
- ``nodes.Compare``
- ``nodes.Delete``
diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py
index 46928f2b..4750966d 100644
--- a/astroid/nodes/node_classes.py
+++ b/astroid/nodes/node_classes.py
@@ -2534,44 +2534,10 @@ class Await(NodeNG):
_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 to wait for."""
-
- 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 to wait for."""
- :param value: What to wait for.
- """
+ def postinit(self, value: NodeNG) -> None:
self.value = value
def get_children(self):