Skip to content

Add changelog for 1.9.0 - #16978

Merged
JukkaL merged 9 commits into
python:masterfrom
jhance:changelog-1.9
Mar 4, 2024
Merged

JukkaL merged 9 commits into
python:masterfrom
jhance:changelog-1.9

Conversation

@jhance

@jhance jhance commented Mar 1, 2024

Copy link
Copy Markdown
Collaborator

I did my best to sort them out in a way I thought was reasonable, but feel free to suggest improvements. I also removed a few that were linter version updates etc.

@cdce8p cdce8p left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Left a few comments. Glad to see you're back and healthy again!

Comment thread CHANGELOG.md Outdated

#### Breaking Changes

Because the version of typeshed we use in mypy 1.9 doesn't support 3.7, neither does mypy 1.9. (Marc Mueller, PR [16900](https://github.com/python/mypy/pull/16900))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That was your PR. I just backported it 😅
See: #16883

Comment thread CHANGELOG.md Outdated
* Apply TypeVar defaults to callables (PEP 696) (Marc Mueller, PR [16842](https://github.com/python/mypy/pull/16842))
* Use TypeVar defaults instead of Any when fixing TypeAlias types (PEP 696) (Marc Mueller, PR [16825](https://github.com/python/mypy/pull/16825))
* Use TypeVar defaults instead of Any when fixing instance types (PEP 696) (Marc Mueller, PR [16812](https://github.com/python/mypy/pull/16812))
* Consider TypeVarTuple to be invariant (Marc Mueller, PR [16759](https://github.com/python/mypy/pull/16759))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would suggest to move this one to the Miscellaneous Fixes section.

Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated

@JelleZijlstra JelleZijlstra 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.

Thanks, left a few suggestions

Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
* Stubtest will ignore private function/method parameters when they are missing from the stub.
Private parameters names start with a single underscore and have a default
(PR [16507](https://github.com/python/mypy/pull/16507)).
* Stubtest: ignore a new protocol dunder (#16895) (Marc Mueller, PR [16899](https://github.com/python/mypy/pull/16899))

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.

Suggested change
* Stubtest: ignore a new protocol dunder (#16895) (Marc Mueller, PR [16899](https://github.com/python/mypy/pull/16899))
* Stubtest: ignore a new protocol dunder (Marc Mueller, PR [16899](https://github.com/python/mypy/pull/16899))

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.

...This was my PR, Marc just cherry-picked it to the release-1.9 branch :)

Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
* Stubtest will ignore private function/method parameters when they are missing from the stub.
Private parameters names start with a single underscore and have a default
(PR [16507](https://github.com/python/mypy/pull/16507)).
* Stubtest: ignore a new protocol dunder (#16895) (Marc Mueller, PR [16899](https://github.com/python/mypy/pull/16899))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* Stubtest: ignore a new protocol dunder (#16895) (Marc Mueller, PR [16899](https://github.com/python/mypy/pull/16899))
* Stubtest: ignore a new protocol dunder (Alex Waygood, PR [16895](https://github.com/python/mypy/pull/16895))

This was also only a cherry-pick PR. Linked the correct one here.

Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
* Use TypeVar defaults instead of Any when fixing instance types (PEP 696) (Marc Mueller, PR [16812](https://github.com/python/mypy/pull/16812))
* Consider TypeVarTuple to be invariant (Marc Mueller, PR [16759](https://github.com/python/mypy/pull/16759))

#### Miscellaneous Fixes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider combining Plugin Improvements and Miscellaneous Fixes and name it Type-checking Improvements similar to the notes for release 1.8.

and maybe further up, above below the new typechecking features.

Comment thread CHANGELOG.md Outdated
Co-authored-by: Marc Mueller <[email protected]>

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. I'll do some editing in a separate PR after merging this.

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.

6 participants