Skip to content

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

Merged
debonte merged 4 commits intomicrosoft:mainfrom
Avasam:Fix-most-misc
May 28, 2025
Merged

mypy: Fix import-untyped and most misc issues#378
debonte merged 4 commits intomicrosoft:mainfrom
Avasam:Fix-most-misc

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