Skip to content

Remove --new-type-inference flag #19570

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

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

ilevkivskyi
Copy link
Member

It was on deprecated almost two years ago (it is on by default).

Copy link
Contributor

github-actions bot commented Aug 2, 2025

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

@@ -391,10 +391,8 @@ def __init__(self) -> None:
# skip most errors after this many messages have been reported.
# -1 means unlimited.
self.many_errors_threshold = defaults.MANY_ERRORS_THRESHOLD
# Disable new experimental type inference algorithm.
# Disable new type inference algorithm.
self.old_type_inference = False
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need this one? There are only a couple of use sites remaining, maybe just axe them here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, no, I think we may keep it for a while more (just in case), since it is not a no-op, unlike --new-type-inference.

@hauntsaninja hauntsaninja merged commit 5b03024 into python:master Aug 4, 2025
20 checks passed
@ilevkivskyi ilevkivskyi deleted the cleanup-test-infer branch August 4, 2025 09:13
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