Skip to content
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

Allow type ignores of PEP 695 constructs #16608

Merged
merged 6 commits into from Dec 7, 2023

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

This comment has been minimized.

This comment has been minimized.

@hauntsaninja hauntsaninja marked this pull request as draft December 4, 2023 07:24
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
18 checks passed
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