New submission from Brett Cannon: There should probably be a context manager ABC in collections.abc that requires __enter__/__exit__ and a matching entry in `typing` that also takes a type argument of what the __enter__ method returns.
---------- components: Library (Lib) keywords: easy messages: 254546 nosy: brett.cannon, gvanrossum priority: normal severity: normal stage: needs patch status: open title: Add a ContextManager ABC and type versions: Python 3.6 _______________________________________ 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