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

gh-105578: DeprecateAnyStr in the docs#107116

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from1 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
PrevPrevious commit
NextNext commit
Add reference to type-params section
  • Loading branch information
@michael-the1
michael-the1 committedJul 30, 2023
commitc9df1220c100913b1d5ba8bc33c162b0431b2992
4 changes: 2 additions & 2 deletionsDoc/library/typing.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -832,8 +832,8 @@ using ``[]``.
.. data:: AnyStr

.. deprecated-removed:: 3.13 3.18
Deprecated in favor of the new type parameter syntax. Use
``class A[T: (str, bytes)]: ...`` instead of importing ``AnyStr``. See
Deprecated in favor of the new:ref:`type parameter syntax <type-params>`.
Use``class A[T: (str, bytes)]: ...`` instead of importing ``AnyStr``. See
:pep:`695` for more details.

In Python 3.16, ``AnyStr`` will be removed from ``typing.__all__``, and
Expand Down
5 changes: 3 additions & 2 deletionsDoc/whatsnew/3.13.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -190,7 +190,8 @@ Deprecated

* :data:`typing.AnyStr` is deprecated. In Python 3.16, it will be removed from
``typing.__all__``, and a :exc:`DeprecationWarning` will be emitted when it
is imported or accessed. It will be removed entirely in Python 3.18.
is imported or accessed. It will be removed entirely in Python 3.18. Use
the new :ref:`type parameter syntax <type-params>` instead.
(Contributed by Michael The in :gh:`107116`.)

* :mod:`wave`: Deprecate the ``getmark()``, ``setmark()`` and ``getmarkers()``
Expand DownExpand Up@@ -340,7 +341,7 @@ Pending Removal in Python 3.16
Pending Removal in Python 3.18
------------------------------

* :class:`typing.AnyStr`: Use the new type parameter syntax instead. See :pep:`695`. (:gh:`105578`)
* :class:`typing.AnyStr`: Use the new:ref:`type parameter syntax <type-params>` instead. See :pep:`695`. (:gh:`105578`)

Pending Removal in Future Versions
----------------------------------
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp