File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 26
26
and the second parameter of ` typing_extensions.AsyncGenerator ` ,
27
27
now default to ` None ` . This matches the behaviour of ` typing.Generator `
28
28
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+.
34
35
35
36
# Release 4.11.0 (April 5, 2024)
36
37
Original file line number Diff line number Diff line change @@ -967,8 +967,8 @@ versions of Python, but all are listed here for completeness.
967
967
968
968
.. versionchanged :: 4.12.0
969
969
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.
972
972
973
973
.. class :: Coroutine
974
974
You can’t perform that action at this time.
0 commit comments