]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in "Context manager types" section in typing.rst (GH-22676)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Oct 2020 23:55:24 +0000 (16:55 -0700)
committerGitHub <noreply@github.com>
Mon, 12 Oct 2020 23:55:24 +0000 (16:55 -0700)
Fix typo in the "Context manager types" section in `typing.rst`.

Automerge-Triggered-By: @gvanrossum
(cherry picked from commit ba06a70c822ede62688136add488eb78957689fe)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Doc/library/typing.rst

index 108d2eeeaf41f648cbd89e92184e34f7b873e27f..e8f34e44a0c0ecedcdc637c393b13a8c9c8c6bed 100644 (file)
@@ -1461,7 +1461,7 @@ Context manager types
    .. versionadded:: 3.6.0
 
    .. deprecated:: 3.9
-      :class:`collections.contextlib.AbstractContextManager` now supports ``[]``. See :pep:`585`.
+      :class:`contextlib.AbstractContextManager` now supports ``[]``. See :pep:`585`.
 
 .. class:: AsyncContextManager(Generic[T_co])
 
@@ -1471,7 +1471,7 @@ Context manager types
    .. versionadded:: 3.6.2
 
    .. deprecated:: 3.9
-      :class:`collections.contextlib.AbstractAsyncContextManager` now supports ``[]``. See :pep:`585`.
+      :class:`contextlib.AbstractAsyncContextManager` now supports ``[]``. See :pep:`585`.
 
 Protocols
 ---------