summaryrefslogtreecommitdiffstats
path: root/Doc/library/typing.rst
diff options
context:
space:
mode:
authorSebastian Rittau <srittau@rittau.biz>2021-06-14 14:45:19 (GMT)
committerGitHub <noreply@github.com>2021-06-14 14:45:19 (GMT)
commit8a76683cfb842e12b57f6d276839f6c68fd94e1a (patch)
tree04628eb80501a666171e4ad94ff97fb7b7694934 /Doc/library/typing.rst
parent358aa6197c2198607b868e6de8aa777323a2d8f9 (diff)
downloadcpython-8a76683cfb842e12b57f6d276839f6c68fd94e1a.zip
cpython-8a76683cfb842e12b57f6d276839f6c68fd94e1a.tar.gz
cpython-8a76683cfb842e12b57f6d276839f6c68fd94e1a.tar.bz2
bpo-38291: Remove mention of typing.io and typing.re again (GH-26113)
They were originally removed in GH-10173 per bpo-35089, but then readded in GH-21574. Cf. bpo-38291 for decision to remove.
Diffstat (limited to 'Doc/library/typing.rst')
-rw-r--r--Doc/library/typing.rst12
1 files changed, 10 insertions, 2 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index ba79bb7..e9980a7 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1488,7 +1488,11 @@ Other concrete types
Generic type ``IO[AnyStr]`` and its subclasses ``TextIO(IO[str])``
and ``BinaryIO(IO[bytes])``
represent the types of I/O streams such as returned by
- :func:`open`. These types are also in the ``typing.io`` namespace.
+ :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.
.. class:: Pattern
Match
@@ -1498,7 +1502,11 @@ Other concrete types
:func:`re.match`. These types (and the corresponding functions)
are generic in ``AnyStr`` and can be made specific by writing
``Pattern[str]``, ``Pattern[bytes]``, ``Match[str]``, or
- ``Match[bytes]``. These types are also in the ``typing.re`` namespace.
+ ``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.
.. deprecated:: 3.9
Classes ``Pattern`` and ``Match`` from :mod:`re` now support ``[]``.