bpo-38978: Implement __class_getitem__ for asyncio objects (GH-17491)

https://bugs.python.org/issue38978
This commit is contained in:
Batuhan Taşkaya 2019-12-07 14:05:07 +03:00 committed by Miss Islington (bot)
parent 723f71abf7
commit dec367261e
5 changed files with 26 additions and 0 deletions

View file

@ -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