Files
typeshed/stdlib
Jelle Zijlstra 7dd2f80194 Fixes to ContextManager (#1249)
* add typing.ContextManager for 3.6+ only

This fixes the easier part of #655.

Would it make sense to add a generic typing.ContextManager that exists in any Python version?

* update comment

* fix argument types for ContextManager.__exit__

* add AsyncContextManager

* add @asynccontextmanager

* typing.ContextManager now always exists

* back out async-related changes

Will submit those in a separate PR later

* fix import order

* AbstractContextManager only exists in 3.6+

* AbstractContextManager -> ContextManager
2017-05-08 16:21:51 -07:00
..
2017-05-08 16:21:51 -07:00
2017-05-08 16:21:51 -07:00
2017-05-08 16:21:51 -07:00
2017-04-24 15:30:59 -07:00
2017-03-20 20:07:58 -07:00