bpo-44471: Change error type for bad objects in ExitStack.enter_context() by serhiy-storchaka · Pull Request #26820 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Conversation
…xt() A TypeError is now raised instead of an AttributeError in ExitStack.enter_context() and AsyncExitStack.enter_async_context() for objects which do not support the context manager or asynchronous context manager protocols correspondingly.
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