Skip to content

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Nov 27, 2025

The first draft was added in #20296.

@JukkaL
Copy link
Collaborator Author

JukkaL commented Nov 27, 2025

I'll keep this PR open for a while, in case somebody else wants to review the changes, but we will merge this once this is needed to unblock the 1.19 release.

Copy link
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.

LG, added some optional comments.

CHANGELOG.md Outdated
- Add tool to convert binary cache files to JSON (Jukka Lehtosalo, PR [20071](https://github.com/python/mypy/pull/20071))
- Use more efficient serialization format for long integers in cache files (Jukka Lehtosalo, PR [20151](https://github.com/python/mypy/pull/20151))
- More robust packing of flats in FF cache (Ivan Levkivskyi, PR [20150](https://github.com/python/mypy/pull/20150))
- More robust packing of flats in fixed-format cache (Ivan Levkivskyi, PR [20150](https://github.com/python/mypy/pull/20150))
Copy link
Member

Choose a reason for hiding this comment

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

I guess it should be floats, not flats.

CHANGELOG.md Outdated
### Fixed‑Format Cache Improvements

Mypy uses a cache by default to speed up incremental runs by reusing partial results
from earlier runs. Mypy 1.18 added a new binary, fixed-format cache representation as
Copy link
Member

Choose a reason for hiding this comment

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

Not sure about the comma here, AI says no comma is needed for cumulative adjectives (whatever it means).

- Support deleting attributes in `__setattr__` wrapper (Piotr Sawicki, PR [19997](https://github.com/python/mypy/pull/19997))

Mypyc now has partial support for `__getattr__`, `__setattr__` and
`__delattr__` methods in native classes.
Copy link
Member

Choose a reason for hiding this comment

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

Assuming we are going forward with #20302 instead of a revert, we should probably also mention __new__().

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I'll add it before merging depending on the final outcome.

CHANGELOG.md Outdated
from earlier runs. Mypy 1.18 added a new binary, fixed-format cache representation as
an experimental feature. The feature is no longer experimental, and we are planning
to enable it by default in a future mypy release (possibly 1.20), since it's faster
and uses less space than the original, JSON-based cache format.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe also remind how to enable the FF cache.

@JukkaL JukkaL merged commit 7936e7e into master Nov 28, 2025
18 checks passed
@JukkaL JukkaL deleted the release-notes-1.19 branch November 28, 2025 11:53
p-sawicki pushed a commit that referenced this pull request Nov 28, 2025
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.

4 participants