summaryrefslogtreecommitdiff
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorBatuhan Taşkaya <batuhanosmantaskaya@gmail.com>2020-04-10 17:46:36 +0300
committerGitHub <noreply@github.com>2020-04-10 07:46:36 -0700
commit0361556537686f857f1025ead75e6af4ca7cc94a (patch)
tree3cce4f12e341d4266d1308f94a92a7c4b25bcdf9 /Lib/tempfile.py
parente3ec44d692d9442e640cf5b2d8708157a65cec3e (diff)
downloadcpython-git-0361556537686f857f1025ead75e6af4ca7cc94a.tar.gz
bpo-39481: PEP 585 for a variety of modules (GH-19423)
- concurrent.futures - ctypes - http.cookies - multiprocessing - queue - tempfile - unittest.case - urllib.parse
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index a398345f10..ed15c0fd1f 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -829,3 +829,5 @@ class TemporaryDirectory(object):
def cleanup(self):
if self._finalizer.detach():
self._rmtree(self.name)
+
+ __class_getitem__ = classmethod(_types.GenericAlias)