KEMBAR78
Allow type ignores of PEP 695 constructs by hauntsaninja · Pull Request #16608 · python/mypy · GitHub
Skip to content

Conversation

hauntsaninja
Copy link
Collaborator

This is basically a pre-existing bug and affects other errors that ASTConverter might raise, like merging overloads.

It could vaguely be nice to move all the set_file_ignored_lines into fastparse, instead of BuildManager.parse_file. Could also clean up the ignore_errors logic a little bit more.

Fixes #16607

This is basically a pre-existing bug and affects other errors that
ASTConverter might raise, like merging overloads.

It could vaguely be nice to move all the set_file_ignored_lines into
fastparse, instead of BuildManager.parse_file. Could also clean up the
ignore_errors logic a little bit more.

Fixes python#16607
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@hauntsaninja hauntsaninja marked this pull request as draft December 4, 2023 07:24
@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2023

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

@hauntsaninja hauntsaninja marked this pull request as ready for review December 4, 2023 08:03
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me!

@JukkaL JukkaL merged commit cbbcdb8 into python:master Dec 7, 2023
wesleywright pushed a commit that referenced this pull request Dec 7, 2023
This is basically a pre-existing bug and affects other errors that
ASTConverter might raise, like merging overloads.

It could vaguely be nice to move all the set_file_ignored_lines into
fastparse, instead of BuildManager.parse_file. Could also clean up the
ignore_errors logic a little bit more.

Fixes #16607
@hauntsaninja hauntsaninja deleted the pep695-ignore branch December 7, 2023 20:59
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.

There is no way to ignore valid-type error for valid type alias type statements

2 participants