stubtest: special case final and deprecated by hauntsaninja · Pull Request #16457 · python/mypy
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 3.2k
Merged
ilevkivskyi merged 1 commit intopython:masterfrom
Nov 11, 2023Merged
stubtest: special case final and deprecated#16457
ilevkivskyi merged 1 commit intopython:masterfrom
stubtest: special case final and deprecated#16457
ilevkivskyi merged 1 commit intopython:masterfrom
Conversation
Copy link Copy Markdown
Collaborator
hauntsaninja
commented
Nov 11, 2023
hauntsaninja
commented
We should probably lean into the type checker harder here
Fixes #14950
Fixes python/typeshed#11009 (comment)
We should probably lean into the type checker harder here Fixes python#14950 Fixes python/typeshed#11009 (comment)
Copy link Copy Markdown
Contributor
github-actions
bot
commented
Nov 11, 2023
github-actions bot commented
Nov 11, 2023According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
ilevkivskyi approved these changes Nov 11, 2023
ilevkivskyi
merged commit
8ae84ed
into
python:master
hauntsaninja
deleted the
stubtest-dec
branch
| ANNOTATED_TYPE_NAMES: Final = ("typing.Annotated", "typing_extensions.Annotated") | ||
|
|
||
| # Supported @deprecated type names | ||
| DEPRECATED_TYPE_NAMES: Final = ("typing.deprecated", "typing_extensions.deprecated") |
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be warnings.deprecated, I'll send a PR.
AlexWaygood
mentioned this pull request
QuLogic
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment