KEMBAR78
stubtest: special case final and deprecated by hauntsaninja · Pull Request #16457 · python/mypy · GitHub
Skip to content

Conversation

hauntsaninja
Copy link
Collaborator

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)
@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi ilevkivskyi merged commit 8ae84ed into python:master Nov 11, 2023
@hauntsaninja hauntsaninja deleted the stubtest-dec branch November 11, 2023 20:22
ANNOTATED_TYPE_NAMES: Final = ("typing.Annotated", "typing_extensions.Annotated")

# Supported @deprecated type names
DEPRECATED_TYPE_NAMES: Final = ("typing.deprecated", "typing_extensions.deprecated")
Copy link
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.

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.

Stubtest crashes on a stub with an overloaded method where the first overload is decorated with @final

3 participants