Skip to content

Commit 4e4b0ce

Browse files
committed
Fix conditional
1 parent bae017a commit 4e4b0ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/typing_extensions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3123,7 +3123,8 @@ def method(self) -> None:
31233123
return arg
31243124

31253125

3126-
if hasattr(warnings, "deprecated"):
3126+
# Python 3.13.3+ contains a fix for the wrapped __new__
3127+
if sys.version_info >= (3, 13, 3):
31273128
deprecated = warnings.deprecated
31283129
else:
31293130
_T = typing.TypeVar("_T")

0 commit comments

Comments
 (0)