bpo-38978: Implement __class_getitem__ for asyncio objects (GH-17491)
https://bugs.python.org/issue38978
This commit is contained in:
committed by
Miss Islington (bot)
parent
723f71abf7
commit
dec367261e
@@ -175,6 +175,9 @@ class Task(futures._PyFuture): # Inherit Python Task implementation
|
||||
self._loop.call_exception_handler(context)
|
||||
super().__del__()
|
||||
|
||||
def __class_getitem__(cls, type):
|
||||
return cls
|
||||
|
||||
def _repr_info(self):
|
||||
return base_tasks._task_repr_info(self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user