Brett Cannon added the comment: Here is an updated patch implementing Nick's suggestions and is ready for 3.6 sans a What's New entry.
As for Python 3.5, I think I will copy __subclasshook__() from contextlib.AbstractContextManager and put it in typing.ContextManager so the isinstance() checks will work with the type structurally. LMK if this all sounds/looks reasonable. ---------- Added file: http://bugs.python.org/file42279/contextmanagertype.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25609> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com