diff options
author | DudeNr33 <3929834+DudeNr33@users.noreply.github.com> | 2021-07-04 19:58:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-04 19:58:21 +0200 |
commit | c2d03c6b3881a9df7353432b109523984adf06f9 (patch) | |
tree | 977236e39e8ca6aca91bef60de94ddec145ed129 /doc | |
parent | c02682670e0d267d9e055347f3c9043f2550e205 (diff) | |
download | pylint-git-c2d03c6b3881a9df7353432b109523984adf06f9.tar.gz |
Fix false-positive ``consider-using-with`` when using ``contextlib.ExitStack`` (#4665)
* Fix false-positive ``consider-using-with`` when using ``contextlib.ExitStack``
* Add ``whatsnew`` entry for #4654
* Python 3.6 needs special treatment - ``ExitStack`` did not inherit from ``_BaseExitStack`` until Python 3.7
Diffstat (limited to 'doc')
-rw-r--r-- | doc/whatsnew/2.9.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/whatsnew/2.9.rst b/doc/whatsnew/2.9.rst index 18bd4507e..a9a3336a8 100644 --- a/doc/whatsnew/2.9.rst +++ b/doc/whatsnew/2.9.rst @@ -62,6 +62,8 @@ New checkers Other Changes ============= +* Fix false-positive ``consider-using-with`` (R1732) if ``contextlib.ExitStack`` takes care of calling the ``__exit__`` method + * Add type annotations to pyreverse dot files * Pylint's tags are now the standard form ``vX.Y.Z`` and not ``pylint-X.Y.Z`` anymore. |