Skip to content

Commit 57b613b

Browse files
committed
Address comments + section for analyzing untyped modules
1 parent 83fbb22 commit 57b613b

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

CHANGELOG.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Mypy 1.14 (unreleased)
88

99
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.
1111
You can install it as follows:
1212

1313
python3 -m pip install -U mypy
@@ -57,15 +57,15 @@ Shantanu Jain in PR [18068](https://github.com/python/mypy/pull/18068).
5757
### Added support for @deprecated decorator (PEP 702)
5858

5959
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
6161
imported otherwise or defined locally. Features are considered deprecated when
6262
decorated with `warnings.deprecated`, as specified in [PEP 702](https://peps.python.org/pep-0702).
6363

6464
You can enable the error code via `--enable-error-code=deprecated` on the mypy
6565
command line or `enable_error_code = deprecated` in the mypy config file.
6666
Use the option `--report-deprecated-as-note` to turn all such errors into notes.
6767

68-
Will be enabled by default in a future mypy version.
68+
Deprecation errors will be enabled by default in a future mypy version.
6969

7070
Contributed by Christoph Tyralla
7171

@@ -77,6 +77,18 @@ List of changes:
7777
* PEP 702 (@deprecated): improve the handling of explicit type annotations of assignment statements (Christoph Tyralla, PR [17899](https://github.com/python/mypy/pull/17899))
7878
* Add basic support for PEP 702 (@deprecated). (Christoph Tyralla, PR [17476](https://github.com/python/mypy/pull/17476))
7979

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))
8092

8193
### Mypyc Improvements
8294

@@ -131,8 +143,7 @@ List of changes:
131143

132144
### Other Notables Fixes and Improvements
133145

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))
136147
* Make join and meet symmetric with strict_optional (MechanicalConstruct, PR [18227](https://github.com/python/mypy/pull/18227))
137148
* Preserve block unreachablility when checking function definitions with constrained TypeVars (Brian Schubert, PR [18217](https://github.com/python/mypy/pull/18217))
138149
* 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

Comments
 (0)