Skip to content

Commit b9056f9

Browse files
hauntsaninjacdce8p
andauthored
Add some highlights to changelog (#18357)
Co-authored-by: Marc Mueller <[email protected]>
1 parent 3433a0e commit b9056f9

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,25 @@
22

33
## Next release
44

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**).
624

725
## Mypy 1.14
826

0 commit comments

Comments
 (0)