You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
## Mypy 1.14 (unreleased)
8
8
9
9
We’ve just uploaded mypy 1.14 to the Python Package Index ([PyPI](https://pypi.org/project/mypy/)). Mypy is a static type
10
-
checker for Python. This release includes new features, performance improvements and bug fixes.
10
+
checker for Python. This release includes new features and bug fixes.
11
11
You can install it as follows:
12
12
13
13
python3 -m pip install -U mypy
@@ -57,15 +57,15 @@ Shantanu Jain in PR [18068](https://github.com/python/mypy/pull/18068).
57
57
### Added support for @deprecated decorator (PEP 702)
58
58
59
59
Mypy can now issue errors or notes when code imports a deprecated feature
60
-
explicitly with a `from mod import depr` statement, uses a deprecated feature
60
+
explicitly with a `from mod import depr` statement, or uses a deprecated feature
61
61
imported otherwise or defined locally. Features are considered deprecated when
62
62
decorated with `warnings.deprecated`, as specified in [PEP 702](https://peps.python.org/pep-0702).
63
63
64
64
You can enable the error code via `--enable-error-code=deprecated` on the mypy
65
65
command line or `enable_error_code = deprecated` in the mypy config file.
66
66
Use the option `--report-deprecated-as-note` to turn all such errors into notes.
67
67
68
-
Will be enabled by default in a future mypy version.
68
+
Deprecation errors will be enabled by default in a future mypy version.
69
69
70
70
Contributed by Christoph Tyralla
71
71
@@ -77,6 +77,18 @@ List of changes:
77
77
* PEP 702 (@deprecated): improve the handling of explicit type annotations of assignment statements (Christoph Tyralla, PR [17899](https://github.com/python/mypy/pull/17899))
78
78
* Add basic support for PEP 702 (@deprecated). (Christoph Tyralla, PR [17476](https://github.com/python/mypy/pull/17476))
79
79
80
+
### Mypy can be configured to analyze untyped modules
81
+
82
+
Mypy normally doesn't analyze imports from modules without stubs or a py.typed marker.
83
+
To force mypy to analyze these imports you can now set the `--follow-untyped-imports` command line
84
+
flag or the `follow_untyped_imports` config file option to True. This can be set either in the
85
+
global section of your mypy config file, or individually on a per-module basis.
86
+
87
+
Contributed by Jannick Kremer
88
+
89
+
List of changes:
90
+
* Implement flag to allow typechecking of untyped modules (Jannick Kremer, PR [17712](https://github.com/python/mypy/pull/17712))
91
+
* Warn about --follow-untyped-imports (Shantanu, PR [18249](https://github.com/python/mypy/pull/18249))
80
92
81
93
### Mypyc Improvements
82
94
@@ -131,8 +143,7 @@ List of changes:
131
143
132
144
### Other Notables Fixes and Improvements
133
145
134
-
* Implement flag to allow typechecking of untyped modules (Jannick Kremer, PR [17712](https://github.com/python/mypy/pull/17712))
135
-
* Show Protocol __call__ for arguments with incompatible types (MechanicalConstruct, PR [18214](https://github.com/python/mypy/pull/18214))
146
+
* Show `Protocol``__call__` for arguments with incompatible types (MechanicalConstruct, PR [18214](https://github.com/python/mypy/pull/18214))
136
147
* Make join and meet symmetric with strict_optional (MechanicalConstruct, PR [18227](https://github.com/python/mypy/pull/18227))
137
148
* Preserve block unreachablility when checking function definitions with constrained TypeVars (Brian Schubert, PR [18217](https://github.com/python/mypy/pull/18217))
138
149
* Do not include non-init fields in the synthesized `__replace__` method for dataclasses (Victorien, PR [18221](https://github.com/python/mypy/pull/18221))
0 commit comments