FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

Repository navigation

Allow type ignores of PEP 695 constructs - #16608

Merged
JukkaL merged 6 commits into
python:masterfrom
hauntsaninja:pep695-ignore
Dec 7, 2023
Merged

JukkaL merged 6 commits into
python:masterfrom
hauntsaninja:pep695-ignore

Conversation

Copy link
Copy Markdown
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 marked this pull request as draft December 4, 2023 07:24

github-actions Bot commented Dec 4, 2023

Copy link
Copy Markdown
Contributor

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

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

JukkaL 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks, looks good to me!

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 deleted the pep695-ignore branch December 7, 2023 20:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL