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
: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 ``[]``.