Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f02195

Browse files
bpo-38291: Remove mention of typing.io and typing.re again (GH-26113)
They were originally removed inGH-10173 perbpo-35089, but thenreadded inGH-21574. Cf.bpo-38291 for decision to remove.(cherry picked from commit8a76683)Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
1 parent9ee8752 commit7f02195

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

‎Doc/library/typing.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,11 @@ Other concrete types
11791179
Generic type ``IO[AnyStr]`` and its subclasses ``TextIO(IO[str])``
11801180
and ``BinaryIO(IO[bytes])``
11811181
represent the types of I/O streams such as returned by
1182-
:func:`open`. These types are also in the ``typing.io`` namespace.
1182+
:func:`open`.
1183+
1184+
..deprecated-removed::3.8 3.12
1185+
These types are also in the ``typing.io`` namespace, which was
1186+
never supported by type checkers and will be removed.
11831187

11841188
..class::Pattern
11851189
Match
@@ -1189,7 +1193,11 @@ Other concrete types
11891193
:func:`re.match`. These types (and the corresponding functions)
11901194
are generic in ``AnyStr`` and can be made specific by writing
11911195
``Pattern[str]``, ``Pattern[bytes]``, ``Match[str]``, or
1192-
``Match[bytes]``. These types are also in the ``typing.re`` namespace.
1196+
``Match[bytes]``.
1197+
1198+
..deprecated-removed::3.8 3.12
1199+
These types are also in the ``typing.re`` namespace, which was
1200+
never supported by type checkers and will be removed.
11931201

11941202
..deprecated::3.9
11951203
Classes ``Pattern`` and ``Match`` from:mod:`re` now support ``[]``.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Mark ``typing.io`` and ``typing.re`` as deprecated since Python 3.8 in the
2+
documentation. They were never properly supported by type checkers.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp