summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2021-12-04 07:38:15 -0500
committerDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-12-04 14:41:04 +0100
commit15b1e5a9374fb51d94d578d2f27c3176d396cfb7 (patch)
tree08ae3e90abd66af54d388ba80dbe0bc1151a8aee
parent3ed7a8e3933d14bc6d07afa8e6ba992b5a4b6926 (diff)
downloadpylint-git-15b1e5a9374fb51d94d578d2f27c3176d396cfb7.tar.gz
Add tempfile.TemporaryFile to CALLS_RETURNING_CONTEXT_MANAGERS
-rw-r--r--pylint/checkers/refactoring/refactoring_checker.py1
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",