8000 Fix some docs typos (#386) · python/typing_extensions@a370bf6 · GitHub
[go: up one dir, main page]

Skip to content

Commit a370bf6

Browse files
authored
Fix some docs typos (#386)
1 parent 76e84d4 commit a370bf6

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@
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

doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
0