Skip to content

Save work on emitting ignored diagnostics#20621

Merged
hauntsaninja merged 4 commits intopython:masterfrom
hauntsaninja:skipdiag
Jan 26, 2026
Merged

Save work on emitting ignored diagnostics#20621
hauntsaninja merged 4 commits intopython:masterfrom
hauntsaninja:skipdiag

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

@hauntsaninja hauntsaninja commented Jan 19, 2026

We already use this trick a little, but we can be much more aggressive about it.

Best reviewed with whitespace ignored. If the pure_ renames are undesirable it is easy to remove them, just helped me avoid some incorrect changes.

This is a 4.5% win on compiled self check

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@hauntsaninja hauntsaninja marked this pull request as ready for review January 20, 2026 03:31
@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

Oh wow, I tried something similar in summer, but didn't see big wins. I guess I simply needed to skip it in more places :-) About the renaming: not huge fan TBH I would prefer to rename those back.

@JukkaL
Copy link
Copy Markdown
Collaborator

JukkaL commented Jan 26, 2026

@hauntsaninja Is something blocking the merge of this PR? I'd love to have the perf increase!

@hauntsaninja
Copy link
Copy Markdown
Collaborator Author

No, just needed to undo the pure renames as per Ivan, doing that now...

@github-actions
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 hauntsaninja merged commit f875853 into python:master Jan 26, 2026
37 of 38 checks passed
@hauntsaninja hauntsaninja deleted the skipdiag branch January 26, 2026 21:26
JukkaL pushed a commit that referenced this pull request Jan 30, 2026
This should be another 2.5% on self check

Sequel to #20621
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