From 46161d5a774b6f87cb83c01f2ca7ee1305b841bb Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 13 May 2024 12:03:56 -0400 Subject: [PATCH] Fix some docs typos --- CHANGELOG.md | 11 ++++++----- doc/index.rst | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f1b8b43..e0a633bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,11 +26,12 @@ and the second parameter of `typing_extensions.AsyncGenerator`, now default to `None`. This matches the behaviour of `typing.Generator` and `typing.AsyncGenerator` on Python 3.13+. -- `typing.ContextManager` and `typing.AsyncContextManager` now have an - optional second parameter, which defaults to `Optional[bool]`. The new - parameter signifies the return type of the `__(a)exit__` method, - matching `typing.ContextManager` and `typing.AsyncContextManager` on - Python 3.13+. +- `typing_extensions.ContextManager` and + `typing_extensions.AsyncContextManager` now have an optional second + parameter, which defaults to `Optional[bool]`. The new parameter + signifies the return type of the `__(a)exit__` method, matching + `typing.ContextManager` and `typing.AsyncContextManager` on Python + 3.13+. # Release 4.11.0 (April 5, 2024) diff --git a/doc/index.rst b/doc/index.rst index 0b4c4bda..5863fe4c 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -967,8 +967,8 @@ versions of Python, but all are listed here for completeness. .. versionchanged:: 4.12.0 - ``AsyncContextManager`` now has an optional second parameter, defaulting to - ``Optional[bool]``, signifying the return type of the ``__aexit__`` method. + ``ContextManager`` now has an optional second parameter, defaulting to + ``Optional[bool]``, signifying the return type of the ``__exit__`` method. .. class:: Coroutine