diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2021-12-04 07:38:15 -0500 |
---|---|---|
committer | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-12-04 14:41:04 +0100 |
commit | 15b1e5a9374fb51d94d578d2f27c3176d396cfb7 (patch) | |
tree | 08ae3e90abd66af54d388ba80dbe0bc1151a8aee | |
parent | 3ed7a8e3933d14bc6d07afa8e6ba992b5a4b6926 (diff) | |
download | pylint-git-15b1e5a9374fb51d94d578d2f27c3176d396cfb7.tar.gz |
Add tempfile.TemporaryFile to CALLS_RETURNING_CONTEXT_MANAGERS
-rw-r--r-- | pylint/checkers/refactoring/refactoring_checker.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pylint/checkers/refactoring/refactoring_checker.py b/pylint/checkers/refactoring/refactoring_checker.py index 9f28d510b..7bd82d1f9 100644 --- a/pylint/checkers/refactoring/refactoring_checker.py +++ b/pylint/checkers/refactoring/refactoring_checker.py @@ -36,6 +36,7 @@ CALLS_RETURNING_CONTEXT_MANAGERS = frozenset( "tempfile.NamedTemporaryFile", "tempfile.SpooledTemporaryFile", "tempfile.TemporaryDirectory", + "tempfile.TemporaryFile", "zipfile.ZipFile", "zipfile.PyZipFile", "zipfile.ZipFile.open", |