File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Next release
4
4
5
- ...
5
+ ### ` --strict-bytes `
6
+
7
+ By default, mypy treats an annotation of `` bytes `` as permitting `` bytearray `` and `` memoryview `` .
8
+ [ PEP 688] ( https://peps.python.org/pep-0688 ) specified the removal of this special case.
9
+ Use this flag to disable this behavior. ` --strict-bytes ` will be enabled by default in ** mypy 2.0** .
10
+
11
+ Contributed by Ali Hamdan (PR [ 18137] ( https://github.com/python/mypy/pull/18263/ ) ) and
12
+ Shantanu Jain (PR [ 13952] ( https://github.com/python/mypy/pull/13952 ) ).
13
+
14
+ ### Improvements to partial type handling in loops
15
+
16
+ This change results in mypy better modelling control flow within loops and hence detecting several
17
+ issues it previously did not detect. In some cases, this change may require use of an additional
18
+ explicit annotation of a variable.
19
+
20
+ Contributed by Christoph Tyralla (PR [ 18180] ( https://github.com/python/mypy/pull/18180 ) ).
21
+
22
+ (Speaking of partial types, another reminder that mypy plans on enabling ` --local-partial-types `
23
+ by default in ** mypy 2.0** ).
6
24
7
25
## Mypy 1.14
8
26
You can’t perform that action at this time.
0 commit comments