diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | astroid/nodes/node_classes.py | 42 |
2 files changed, 3 insertions, 40 deletions
@@ -23,6 +23,7 @@ Release date: TBA - ``nodes.Call`` - ``nodes.Compare`` - ``nodes.Comprehension`` + - ``nodes.Decorators`` - ``nodes.Delete`` - ``nodes.DelAttr`` - ``nodes.DelName`` diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py index 7b7f532e..ae4cf632 100644 --- a/astroid/nodes/node_classes.py +++ b/astroid/nodes/node_classes.py @@ -1735,48 +1735,10 @@ class Decorators(NodeNG): _astroid_fields = ("nodes",) - 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.nodes: list[NodeNG] - """The decorators that this node contains. - - :type: list(Name or Call) or None - """ - - super().__init__( - lineno=lineno, - col_offset=col_offset, - end_lineno=end_lineno, - end_col_offset=end_col_offset, - parent=parent, - ) + nodes: list[NodeNG] + """The decorators that this node contains.""" def postinit(self, nodes: list[NodeNG]) -> None: - """Do some setup after initialisation. - - :param nodes: The decorators that this node contains. - :type nodes: list(Name or Call) - """ self.nodes = nodes def scope(self) -> LocalsDictNodeNG: |