KEMBAR78
Remove --new-type-inference flag by ilevkivskyi · Pull Request #19570 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

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

@github-actions
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. ✅

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