We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a14d088 commit 6e58cdfCopy full SHA for 6e58cdf
astroid/nodes/node_ng.py
@@ -278,7 +278,9 @@ def parent_of(self, node):
278
return any(self is parent for parent in node.node_ancestors())
279
280
@overload
281
- def statement(self) -> Union["nodes.Statement", "nodes.Module"]:
+ def statement(
282
+ self, *, future: Literal[None] = ...
283
+ ) -> Union["nodes.Statement", "nodes.Module"]:
284
...
285
286
astroid/nodes/scoped_nodes/scoped_nodes.py
@@ -658,7 +658,7 @@ def fully_defined(self):
658
return self.file is not None and self.file.endswith(".py")
659
660
661
- def statement(self) -> "Module":
+ def statement(self, *, future: Literal[None] = ...) -> "Module":
662
663
664
# pylint: disable-next=arguments-differ
0 commit comments