Author Jelle Zijlstra
Recipients Jelle Zijlstra, levkivskyi, ncoghlan, yselivanov
Date 2017-05-03.04:12:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493784741.35.0.949796244558.issue30241@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-05-03 04:12:21Jelle Zijlstrasetrecipients: + Jelle Zijlstra, ncoghlan, yselivanov, levkivskyi
2017-05-03 04:12:21Jelle Zijlstrasetmessageid: <1493784741.35.0.949796244558.issue30241@psf.upfronthosting.co.za>
2017-05-03 04:12:21Jelle Zijlstralinkissue30241 messages
2017-05-03 04:12:20Jelle Zijlstracreate