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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30241>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to