Brett Cannon added the comment: When I have a chance I'll do up a new patch where the definition of typing.ContextManager is guarded, add a What's New entry, and commit it. My planned guard will be:
if hasattr(contextlib, 'AbstractContextManager'): class ContextManager(...): ... __all__.append('ContextManager') ---------- _______________________________________ 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