Skip to content

stdlib: remove unused type: ignore comments#11061

Merged
srittau merged 2 commits intopython:mainfrom
AlexWaygood:unused-ignores
Nov 23, 2023
Merged

stdlib: remove unused type: ignore comments#11061
srittau merged 2 commits intopython:mainfrom
AlexWaygood:unused-ignores

Conversation

@AlexWaygood
Copy link
Copy Markdown
Member

And, where relevant, use the new [overload-overlap] error code instead of the [misc] error code. The [overload-overlap] code ignores a narrower set of errors from mypy.

I prepared this PR using the same technique I used in #9801.

@AlexWaygood AlexWaygood marked this pull request as draft November 23, 2023 11:58
@AlexWaygood AlexWaygood marked this pull request as ready for review November 23, 2023 12:02
@github-actions
Copy link
Copy Markdown
Contributor

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

@srittau srittau merged commit 10febc4 into python:main Nov 23, 2023
@AlexWaygood AlexWaygood deleted the unused-ignores branch November 23, 2023 13:01
@srittau
Copy link
Copy Markdown
Collaborator

srittau commented Nov 23, 2023

Nice. We're down to 121 misc ignores (according to rgrep ignore\\[misc\\] stdlib/ stubs/ | wc -l. I hope we will get this down to 0 at some point.

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