diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-12-16 16:34:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 16:34:14 +0100 |
commit | c285fae493a7a272639a969d6ea914db8c9e1d18 (patch) | |
tree | 1843118a59f818b7717447f75142c14665801e48 /pylint/checkers/base.py | |
parent | 9909daec8e3089e350decf8c1a837a2f6fe95cb9 (diff) | |
download | pylint-git-c285fae493a7a272639a969d6ea914db8c9e1d18.tar.gz |
Add ``future=True`` to all ``NodeNG.statement()`` calls (#5310)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'pylint/checkers/base.py')
-rw-r--r-- | pylint/checkers/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index 0206b1202..9d61cf10f 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -606,7 +606,7 @@ class BasicErrorChecker(_BasicChecker): # PEP 448 unpacking. return - stmt = node.statement() + stmt = node.statement(future=True) if not isinstance(stmt, nodes.Assign): return |