8000 bpo-38291: Remove mention of typing.io and typing.re again by srittau · Pull Request #26113 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-38291: Remove mention of typing.io and typing.re again #26113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove mention of typing.io and typing.re again
They were originally removed in GH-10173 per bpo-35089, but then
readded in GH-21574. Cf. bpo-38291 for decision to remove.
  • Loading branch information
srittau committed May 13, 2021
commit 65757ba6d6e6091f6138d1389ed8974a14580258
4 changes: 2 additions & 2 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ 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`.

.. class:: Pattern
Match
Expand All @@ -1498,7 +1498,7 @@ 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:: 3.9
Classes ``Pattern`` and ``Match`` from :mod:`re` now support ``[]``.
Expand Down
0