File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 and the second parameter of ` typing_extensions.AsyncGenerator ` ,
2727 now default to ` None ` . This matches the behaviour of ` typing.Generator `
2828 and ` typing.AsyncGenerator ` on Python 3.13+.
29- - ` typing.ContextManager ` and ` typing.AsyncContextManager ` now have an
30- optional second parameter, which defaults to ` Optional[bool] ` . The new
31- parameter signifies the return type of the ` __(a)exit__ ` method,
32- matching ` typing.ContextManager ` and ` typing.AsyncContextManager ` on
33- Python 3.13+.
29+ - ` typing_extensions.ContextManager ` and
30+ ` typing_extensions.AsyncContextManager ` now have an optional second
31+ parameter, which defaults to ` Optional[bool] ` . The new parameter
32+ signifies the return type of the ` __(a)exit__ ` method, matching
33+ ` typing.ContextManager ` and ` typing.AsyncContextManager ` on Python
34+ 3.13+.
3435
3536# Release 4.11.0 (April 5, 2024)
3637
Original file line number Diff line number Diff line change @@ -967,8 +967,8 @@ versions of Python, but all are listed here for completeness.
967967
968968 .. versionchanged :: 4.12.0
969969
970- ``AsyncContextManager `` now has an optional second parameter, defaulting to
971- ``Optional[bool] ``, signifying the return type of the ``__aexit__ `` method.
970+ ``ContextManager `` now has an optional second parameter, defaulting to
971+ ``Optional[bool] ``, signifying the return type of the ``__exit__ `` method.
972972
973973.. class :: Coroutine
974974
You can’t perform that action at this time.
0 commit comments