Skip to content

mypy: Fix import-untyped and most misc issues #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 28, 2025

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented May 26, 2025

The amount of misc left is now just under 300 and it's mostly Untyped decorator makes function "..." untyped, which I've requested to split off into its own error code in python/mypy#19148. As well as some __new__ return type mypy is being overly strict about (asked to split off in python/mypy#15182 (comment) so this project can also ignore it)

Setting import-untyped resolves plenty of misc issues due to import symbols no longer being see as Any. It also happens to make it so import-untyped doesn't have to be disabled anymore.

@Avasam Avasam changed the title Fix most mypy "misc" issues mypy: Fix import-untyped and most misc issues May 28, 2025
@debonte debonte merged commit 994e586 into microsoft:main May 28, 2025
3 checks passed
@Avasam Avasam deleted the Fix-most-misc branch May 28, 2025 19:36
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