commit | dec367261e7e2bb4dd42feeb58031abed2ade683 | [log] [tgz] |
---|---|---|
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | Sat Dec 07 14:05:07 2019 +0300 |
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Sat Dec 07 03:05:07 2019 -0800 |
tree | d1d7debbc9f5fc199d8f632d8042b9c628a5a5ce | |
parent | 723f71abf7ab0a7be394f9f7b2daa9ecdf6fb1eb [diff] [blame] |
bpo-38978: Implement __class_getitem__ for asyncio objects (GH-17491) https://bugs.python.org/issue38978
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 38d9827..894d28e 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py
@@ -175,6 +175,9 @@ 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)