Skip to content

Flip fixed-format cache to on by default#20758

Merged
hauntsaninja merged 1 commit intopython:masterfrom
ilevkivskyi:flip-ff
Feb 6, 2026
Merged

Flip fixed-format cache to on by default#20758
hauntsaninja merged 1 commit intopython:masterfrom
ilevkivskyi:flip-ff

Conversation

@ilevkivskyi
Copy link
Member

Since this is scheduled for v1.20 it is better do this sooner than later. So that people who are using mypy master can give some early feedback.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

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

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

Let's do it! Maybe we should also enable sqlite cache by default (in 1.20), for even more incremental mode performance gains?

@hauntsaninja hauntsaninja merged commit 1be60fe into python:master Feb 6, 2026
24 checks passed
@ilevkivskyi ilevkivskyi deleted the flip-ff branch February 6, 2026 21:30
@ilevkivskyi
Copy link
Member Author

@JukkaL

Maybe we should also enable sqlite cache by default (in 1.20), for even more incremental mode performance gains?

Maybe. I am thinking maybe we should also add some helper script to extract cached content from DB, or do we already have one?

@ilevkivskyi
Copy link
Member Author

Btw, I just noticed that some of the scripts (like convert-cache.py, diff-cache.py, apply-cache-diff.py) will not work with fixed format. The first one is probably easy to fix, the other two are less trivial.

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