Skip to content

Commit 7af82f9

Browse files
@deprecated: will be in warnings, not typing (#298)
1 parent f9f257c commit 7af82f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ Decorators
549549

550550
.. decorator:: deprecated(msg, *, category=DeprecationWarning, stacklevel=1)
551551

552-
See :pep:`702`. Experimental; not yet part of the standard library.
552+
See :pep:`702`. In the :mod:`warnings` module since Python 3.13.
553553

554554
.. versionadded:: 4.5.0
555555

src/typing_extensions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2282,8 +2282,8 @@ def method(self) -> None:
22822282
return arg
22832283

22842284

2285-
if hasattr(typing, "deprecated"):
2286-
deprecated = typing.deprecated
2285+
if hasattr(warnings, "deprecated"):
2286+
deprecated = warnings.deprecated
22872287
else:
22882288
_T = typing.TypeVar("_T")
22892289

0 commit comments

Comments
 (0)