Add changelog for 1.16 by JukkaL · Pull Request #19138 · python/mypy

@JukkaL

sterliakov

* `dmypy suggest` can now suggest through contextmanager-based decorators (Anthony Sottile, PR [18948](https://github.com/python/mypy/pull/18948))
* Fix `__r<magic_methods>__` being used under the same `__<magic_method>__` hook (Arnav Jain, PR [18995](https://github.com/python/mypy/pull/18995))
* Prioritize `.pyi` from `-stubs` packages over bundled `.pyi` (Joren Hammudoglu, PR [19001](https://github.com/python/mypy/pull/19001))
* Do not narrow types to Never with binder (Ivan Levkivskyi, PR [18972](https://github.com/python/mypy/pull/18972))

Choose a reason for hiding this comment

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

Duplicated from L320?

* Fix PEP 695 type alias with a mix of type arguments (PEP 696) (Marc Mueller, PR [18919](https://github.com/python/mypy/pull/18919))
* Allow deeper recursion in mypy daemon, better error reporting (Carter Dodd, PR [17707](https://github.com/python/mypy/pull/17707))
* Fix swapped errors for frozen/non-frozen dataclass inheritance (Nazrawi Demeke, PR [18918](https://github.com/python/mypy/pull/18918))
* Traverse module ancestors when traversing reachable graph nodes during dmypy update (Stanislav Terliakov, PR [18906](https://github.com/python/mypy/pull/18906))

Choose a reason for hiding this comment

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

Belongs to "Fixes to Crashes"?

jorenham


@abstractmethod
@overload
deef foo(self, x: str) -> str: ...

Choose a reason for hiding this comment

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

deef foo(self, x: str) -> str: ...
def foo(self, x: str) -> str: ...

@JukkaL

@JukkaL

@JukkaL

ilevkivskyi

* Reject duplicate `ParamSpec.{args,kwargs}` at call site (Stanislav Terliakov, PR [18854](https://github.com/python/mypy/pull/18854))
* Make detection of enum members more consistent (sobolevn, PR [18675](https://github.com/python/mypy/pull/18675))
* Admit that `**kwargs` mapping subtypes may have no direct type parameters (Stanislav Terliakov, PR [18850](https://github.com/python/mypy/pull/18850))
* Drop don't suggest `types-setuptools for `pkg_resources` (Shantanu, PR [18840](https://github.com/python/mypy/pull/18840))

Choose a reason for hiding this comment

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

This sentence doesn't parse? It should be either "Drop" or "don't suggest" but not both.

Choose a reason for hiding this comment

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

Also something wrong with backticks here, I think there is one missing after "setuptools".

Choose a reason for hiding this comment

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

And missing backtick too late...

@JukkaL JukkaL deleted the changelog-1.16 branch

May 29, 2025 11:36

JukkaL added a commit that referenced this pull request

May 29, 2025

cdce8p pushed a commit to cdce8p/mypy that referenced this pull request

May 31, 2025