Skip to content

Commit 2c66b48

Browse files
jhancecdce8pJelleZijlstra
authored
Add changelog for 1.9.0 (#16978)
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. --------- Co-authored-by: Marc Mueller <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 42afe67 commit 2c66b48

File tree

1 file changed

+58
-3
lines changed

1 file changed

+58
-3
lines changed

CHANGELOG.md

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,64 @@
11
# Mypy Release Notes
22

3-
## Next release
3+
## Mypy 1.9
4+
5+
We’ve just uploaded mypy 1.9 to the Python Package Index ([PyPI](https://pypi.org/project/mypy/)). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:
6+
7+
python3 -m pip install -U mypy
8+
9+
You can read the full documentation for this release on [Read the Docs](http://mypy.readthedocs.io).
10+
11+
#### Breaking Changes
12+
13+
Because the version of typeshed we use in mypy 1.9 doesn't support 3.7, neither does mypy 1.9. (Jared Hance, PR [16883](https://github.com/python/mypy/pull/16883))
14+
15+
#### Basic PEP 696 Support
16+
17+
This release contains new support for PEP 696 (https://peps.python.org/pep-0696). Please try it out! (Contributed by Marc Mueller).
18+
19+
#### Type-checking improvements
20+
* Fix duplicated TypeVarTuple test (Jelle Zijlstra, PR [16853](https://github.com/python/mypy/pull/16853))
21+
* Fix missing type store for overloads (Marc Mueller, PR [16803](https://github.com/python/mypy/pull/16803))
22+
* Fix `'WriteToConn' object has no attribute 'flush'` (Charlie Denton, PR [16801](https://github.com/python/mypy/pull/16801))
23+
* Update TypeAlias error messages to remove colon (Marc Mueller, PR [16831](https://github.com/python/mypy/pull/16831))
24+
* Support narrowing unions that include type[None] (Christoph Tyralla, PR [16315](https://github.com/python/mypy/pull/16315))
25+
* Support TypedDict functional syntax as class base type (anniel-stripe, PR [16703](https://github.com/python/mypy/pull/16703))
26+
* Accept multiline quoted annotations (Shantanu, PR [16765](https://github.com/python/mypy/pull/16765))
27+
* Allow unary + in Literal (Jelle Zijlstra, PR [16729](https://github.com/python/mypy/pull/16729))
28+
* Speed up finding function type variables (Jukka Lehtosalo, PR [16562](https://github.com/python/mypy/pull/16562))
29+
* Substitute type variables in return type of static methods (Kouroche Bouchiat, PR [16670](https://github.com/python/mypy/pull/16670))
30+
* Consider TypeVarTuple to be invariant (Marc Mueller, PR [16759](https://github.com/python/mypy/pull/16759))
31+
* Add `alias` support to `field()` in `attrs` plugin (Nikita Sobolev, PR [16610](https://github.com/python/mypy/pull/16610))
32+
* Improve attrs hashability detection (Tin Tvrtković, PR [16556](https://github.com/python/mypy/pull/16556))
33+
34+
#### Documentation Updates
35+
* Document --enable-incomplete-feature possible values in "mypy --help" (Froger David, PR [16661](https://github.com/python/mypy/pull/16661))
36+
* Update new type system discussion links (thomaswhaley, PR [16841](https://github.com/python/mypy/pull/16841))
37+
* Docs: Add missing class instantiation to cheat sheet (Aleksi Tarvainen, PR [16817](https://github.com/python/mypy/pull/16817))
38+
* Fix typo in getting_started.rst (zipperer, PR [16700](https://github.com/python/mypy/pull/16700))
39+
* Document how evil `--no-strict-optional` is (Shantanu, PR [16731](https://github.com/python/mypy/pull/16731))
40+
* Improve mypy daemon documentation note about local partial types (Makonnen Makonnen, PR [16782](https://github.com/python/mypy/pull/16782))
41+
* Fix numbering error in docs (Stefanie Molin, PR [16838](https://github.com/python/mypy/pull/16838))
42+
* Various docs improvements (Shantanu, PR [16836](https://github.com/python/mypy/pull/16836))
43+
44+
#### Stubtest Improvements
45+
* Stubtest will ignore private function/method parameters when they are missing from the stub.
46+
Private parameters names start with a single underscore and have a default
47+
(PR [16507](https://github.com/python/mypy/pull/16507)).
48+
* Stubtest: ignore a new protocol dunder (Alex Waygood, PR [16895](https://github.com/python/mypy/pull/16895))
49+
* stubtest: Private parameters can be omitted (Sebastian Rittau, PR [16507](https://github.com/python/mypy/pull/16507))
50+
* stubtest: Add support for setting enum members to "..." (Jelle Zijlstra, PR [16807](https://github.com/python/mypy/pull/16807))
51+
* stubtest: adjust symtable logic (Shantanu, PR [16823](https://github.com/python/mypy/pull/16823))
52+
* stubtest: fix pos-only handling in overload resolution (Shantanu, PR [16750](https://github.com/python/mypy/pull/16750))
53+
54+
#### Stubgen Improvements
55+
* stubgen: Fix crash on star unpack of TypeVarTuple (Ali Hamdan, PR [16869](https://github.com/python/mypy/pull/16869))
56+
* Fix failing stubgen tests (Ali Hamdan, PR [16779](https://github.com/python/mypy/pull/16779))
57+
* stubgen: use PEP 604 unions everywhere (Ali Hamdan, PR [16519](https://github.com/python/mypy/pull/16519))
58+
* Improve stubgen tests (Fabian Keller, PR [16760](https://github.com/python/mypy/pull/16760))
59+
* stubgen: Do not ignore property deleter (Ali Hamdan, PR [16781](https://github.com/python/mypy/pull/16781))
60+
* Support type stub generation for `staticmethod` (WeilerMarcel, PR [14934](https://github.com/python/mypy/pull/14934))
461

5-
Stubtest will ignore private function/method parameters when they are missing from the stub. Private parameters
6-
names start with a single underscore and have a default (PR [16507](https://github.com/python/mypy/pull/16507)).
762

863
## Mypy 1.8
964

0 commit comments

Comments
 (0)