]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in "Context manager types" section in typing.rst (GH-22676)
authorSaiyang Gou <gousaiyang@163.com>
Mon, 12 Oct 2020 23:34:33 +0000 (16:34 -0700)
committerGitHub <noreply@github.com>
Mon, 12 Oct 2020 23:34:33 +0000 (16:34 -0700)
Fix typo in the "Context manager types" section in `typing.rst`.

Automerge-Triggered-By: @gvanrossum
Doc/library/typing.rst

index 6111603a995c58915fa7467cd0ca28e15cb4b91c..5fb78bbde69b1cd73971182572ff9fd8e231180b 100644 (file)
@@ -1478,7 +1478,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])
 
@@ -1488,7 +1488,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
 ---------