Skip to content

Various mypy 2.4 changelog updates - #22077

Merged
JukkaL merged 2 commits into
masterfrom
changelog-2.4-updates
Oct 1, 2026
Merged

JukkaL merged 2 commits into
masterfrom
changelog-2.4-updates

Conversation

@JukkaL

@JukkaL JukkaL commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Primarily add overviews to beginnings of various sections.

@ilevkivskyi ilevkivskyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LG, thanks, just few optional suggestions.

Comment thread CHANGELOG.md
- Stub files can use syntax that is newer than the target Python
version. For example, stubs can use the PEP 695 generic class syntax
(`class Box[T]: ...`) when running on or targeting Python 3.10.
- Parallel type checking requires the native parser.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe also mention error recovery? I think we already made some errors that were previously blocking non-blockers. We may make more syntax errors non-blockers in future.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I didn't mention this since it's currently only marginally better at most. We can implement proper error recovery later and then announce it as a new feature.

Comment thread CHANGELOG.md Outdated
details). Closed TypedDicts (PEP 728) have been supported since mypy
2.2, but the `extra_items` TypedDict argument, also introduced in PEP
728, is still unsupported. Support for `extra_items` will be added in
a future mypy release.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe briefly mention other things like lazy imports and unpacking in comprehensions? Even though mypyc doesn't support these, we can still type-check them.

Comment thread CHANGELOG.md Outdated
variadic generic types. The unpacked portion can match any number of
items when checking compatibility, while explicitly specified items
still need to match. This also improves type inference and support for
indexing, slicing, and unpacking these tuples.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe clarify this is specific to Any and variadic tuples with non-Any item type are still handled strictly?

@JukkaL
JukkaL merged commit 5c45130 into master Oct 1, 2026
2 checks passed
@JukkaL
JukkaL deleted the changelog-2.4-updates branch October 1, 2026 12:45
KevinRK29 pushed a commit that referenced this pull request Oct 1, 2026
Primarily add overviews to beginnings of various sections.

(cherry picked from commit 5c45130)
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