Skip to content

Changelog updates for 1.20#21109

Merged
JukkaL merged 22 commits intomasterfrom
changelog-1.20
Mar 31, 2026
Merged

Changelog updates for 1.20#21109
JukkaL merged 22 commits intomasterfrom
changelog-1.20

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Mar 30, 2026

Add sections for major features and list items for small user-visible changes.

Document expected major changes in the mypy 2.0 release.

Related issue: #20726

@github-actions

This comment has been minimized.

@JukkaL
Copy link
Copy Markdown
Collaborator Author

JukkaL commented Mar 30, 2026

I'll leave this open for the rest of day in case others would like to provide feedback.

Copy link
Copy Markdown
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, thank! Just few minor comments.

minor code changes to adopt. For more information, refer to the
[documentation](https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-strict-bytes).

Finally, `--allow-redefinition-new` will be renamed to `--allow-redefinition`. If you want
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 add a super short motivation/reminder for why --allow-redefinition-new is better. E.g. mention that it supports conditional redefinition?

CHANGELOG.md Outdated

Also, we are planning to turn local partial types on by default in mypy 2.0 (to be
released soon), and this makes the change much less disruptive. However, explicitly
disabling local partial types will continue to be supported indefinitely.
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.

Actually, I am not sure about this. I would propose to deprecate and delete support for non-local partial types at some point. This is because parallel type checking will also require --local-partial-types very soon.

CHANGELOG.md Outdated

### Experimental New Parser

If you install mypy using `pip install mypy[native-parse]` and run mypy with
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.

Not sure why I named the optional dependency native-parse without r at the end. I think we should rename it to native-parser for consistency with the flag name.

@github-actions

This comment has been minimized.

@JukkaL JukkaL merged commit e802d5e into master Mar 31, 2026
24 checks passed
@JukkaL JukkaL deleted the changelog-1.20 branch March 31, 2026 14:31
JukkaL added a commit that referenced this pull request Mar 31, 2026
Add sections for major features and list items for small user-visible
changes.

Document expected major changes in the mypy 2.0 release.

Related issue: #20726
@github-actions
Copy link
Copy Markdown
Contributor

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

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