[New-bugs-announce] [issue30241] Add contextlib.AbstractAsyncContextManager
report at bugs.python.org
Wed May 3 00:12:21 EDT 2017
New submission from Jelle Zijlstra:
It would be useful to have an abstract base class for asynchronous context managers, similar to the existing contextlib.AbstractContextManager. We can then also add this class to typing and use it as a PEP 544 Protocol.
I have code ready for contextlib.AbstractAsyncContextManager and will submit the PR shortly. I'll also add support in typing and typeshed if the CPython change is accepted.
components: Library (Lib)
nosy: Jelle Zijlstra, levkivskyi, ncoghlan, yselivanov
title: Add contextlib.AbstractAsyncContextManager
versions: Python 3.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce