bpo-30266: support "= None" pattern in AbstractContextManager by JelleZijlstra · Pull Request #1448 · python/cpython
Mariatta pushed a commit to Mariatta/cpython that referenced this pull request
…ythonGH-1448) contextlib.AbstractContextManager now supports anti-registration by setting __enter__ = None or __exit__ = None, following the pattern introduced in bpo-25958.. (cherry picked from commit 57161aa)
Mariatta added a commit that referenced this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters