Message292835
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. |
|
Date |
User |
Action |
Args |
2017-05-03 04:12:21 | JelleZijlstra | set | recipients:
+ JelleZijlstra, ncoghlan, yselivanov, levkivskyi |
2017-05-03 04:12:21 | JelleZijlstra | set | messageid: <1493784741.35.0.949796244558.issue30241@psf.upfronthosting.co.za> |
2017-05-03 04:12:21 | JelleZijlstra | link | issue30241 messages |
2017-05-03 04:12:20 | JelleZijlstra | create | |
|