summaryrefslogtreecommitdiff
path: root/Lib/asyncio/futures.py
diff options
context:
space:
mode:
authorBatuhan Taşkaya <47358913+isidentical@users.noreply.github.com>2019-12-07 14:05:07 +0300
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-12-07 03:05:07 -0800
commitdec367261e7e2bb4dd42feeb58031abed2ade683 (patch)
treed1d7debbc9f5fc199d8f632d8042b9c628a5a5ce /Lib/asyncio/futures.py
parent723f71abf7ab0a7be394f9f7b2daa9ecdf6fb1eb (diff)
downloadcpython-git-dec367261e7e2bb4dd42feeb58031abed2ade683.tar.gz
bpo-38978: Implement __class_getitem__ for asyncio objects (GH-17491)
https://bugs.python.org/issue38978
Diffstat (limited to 'Lib/asyncio/futures.py')
-rw-r--r--Lib/asyncio/futures.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py
index 9afda220bd..a3cf379ee8 100644
--- a/Lib/asyncio/futures.py
+++ b/Lib/asyncio/futures.py
@@ -103,6 +103,9 @@ class Future:
context['source_traceback'] = self._source_traceback
self._loop.call_exception_handler(context)
+ def __class_getitem__(cls, type):
+ return cls
+
@property
def _log_traceback(self):
return self.__log_traceback