Skip to content

Conversation

@donbarbos
Copy link
Contributor

@typing_extensions.deprecated(
"Creating a typing.NamedTuple using keyword arguments is deprecated and support will be removed in Python 3.15"
)
@deprecated("Creating a typing.NamedTuple using keyword arguments is deprecated and support will be removed in Python 3.15")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no point in specifying that this deprecated is from typing_extensions, since deprecated is imported only from there, and typing_extensions are used everywhere.

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

discord.py (https://github.com/Rapptz/discord.py)
- ...typeshed_to_test/stdlib/typing.pyi:1036: note: "update" of "TypedDict" defined here
+ ...typeshed_to_test/stdlib/typing.pyi:1040: note: "update" of "TypedDict" defined here

@srittau srittau merged commit 6b4e7f1 into python:main Nov 18, 2025
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants