KEMBAR78
Don't write constructor cache without strict optional by ilevkivskyi · Pull Request #19752 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #19751

Fix is straightforward: don't write cache when it is not safe to.

@github-actions
Copy link
Contributor

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

@JukkaL JukkaL merged commit ae87821 into python:master Aug 28, 2025
20 checks passed
@JukkaL
Copy link
Collaborator

JukkaL commented Aug 28, 2025

Thanks for the quick fix!

@ilevkivskyi ilevkivskyi deleted the fix-type-obj-cache branch August 28, 2025 14:06
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.

Regression related type objects and no strict optional

3 participants