Skip to content

Add mypy error codes to type: ignores, remove unused ignores - #7504

Merged
AlexWaygood merged 9 commits into
python:masterfrom
AlexWaygood:type-ignores
Mar 19, 2022
Merged

AlexWaygood merged 9 commits into
python:masterfrom
AlexWaygood:type-ignores

Conversation

@AlexWaygood

Copy link
Copy Markdown
Member

Accomplished with a little help from @Akuli's script in 745da72

This does the uncontroversial bits from #7497 (adds mypy error codes where possible, removes the unused ignores, highlights which ignores are pyright-specific). We can carry on discussing in the issue thread whether we want to change the pyright-specific type: ignores to use the new pyright: ignore comments instead.

@github-actions

This comment has been minimized.

@AlexWaygood

Copy link
Copy Markdown
Member Author

@hauntsaninja, any idea which config options we're missing from mypy_test.py that means stubtest is picking up on mypy build errors here that were missed by mypy_test here?

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@AlexWaygood
AlexWaygood marked this pull request as ready for review March 17, 2022 10:23

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks and LGTM! Cc @Akuli

@github-actions

This comment has been minimized.

Comment thread stdlib/@python2/smtpd.pyi Resolved
Comment thread stdlib/@python2/typing_extensions.pyi Resolved
Comment thread stubs/boto/boto/s3/connection.pyi Resolved
Comment thread stubs/boto/boto/connection.pyi Resolved
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood
AlexWaygood merged commit 340c6c9 into python:master Mar 19, 2022
@AlexWaygood
AlexWaygood deleted the type-ignores branch March 19, 2022 13:10
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.

3 participants