[New-bugs-announce] [issue30241] Add contextlib.AbstractAsyncContextManager

Jelle Zijlstra 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)
messages: 292835
nosy: Jelle Zijlstra, levkivskyi, ncoghlan, yselivanov
priority: normal
severity: normal
status: open
title: Add contextlib.AbstractAsyncContextManager
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30241>
_______________________________________


More information about the New-bugs-announce mailing list