diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-31 03:07:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-31 03:07:49 -0700 |
| commit | 1d0c5596142eeb35fea172c3642e23aeca128f5d (patch) | |
| tree | e1a40e521de079c2bb94a4dbd921cc5fc36e1af1 | |
| parent | d65fad04fad1a73b6bb17bcb08ca6f0a24376952 (diff) | |
| download | cpython-git-1d0c5596142eeb35fea172c3642e23aeca128f5d.tar.gz | |
bpo-44925: [docs] Fix confusing deprecation notice for typing.IO (GH-28004)
(cherry picked from commit edae42f99f8153b92ccf365dbd1c2fa954f913b4)
Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
| -rw-r--r-- | Doc/library/typing.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 53cf5429b5..13760c1921 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1507,8 +1507,8 @@ Other concrete types :func:`open`. .. deprecated-removed:: 3.8 3.12 - These types are also in the ``typing.io`` namespace, which was - never supported by type checkers and will be removed. + The ``typing.io`` namespace is deprecated and will be removed. + These types should be directly imported from ``typing`` instead. .. class:: Pattern Match @@ -1521,8 +1521,8 @@ Other concrete types ``Match[bytes]``. .. deprecated-removed:: 3.8 3.12 - These types are also in the ``typing.re`` namespace, which was - never supported by type checkers and will be removed. + The ``typing.re`` namespace is deprecated and will be removed. + These types should be directly imported from ``typing`` instead. .. deprecated:: 3.9 Classes ``Pattern`` and ``Match`` from :mod:`re` now support ``[]``. |
