Skip to content

Commit 93e65e4

Browse files
authored
Add missing language identifiers in changelog code snippets (#16475)
Lets the Markdown renderer highlight the code as Python rather than leaving it un-highlighted :–) This PR does not change mypy, nor do I believe any tests should be written, as it only affects the rendering of a few code snippets in the changelog (other snippets further down in the changelog already use the identifier).
1 parent 023eb41 commit 93e65e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can read the full documentation for this release on [Read the Docs](http://m
1616

1717
Mypy now has support for using `Unpack[...]` with a TypedDict type to annotate `**kwargs` arguments enabled by default. Example:
1818

19-
```
19+
```python
2020
# Or 'from typing_extensions import ...'
2121
from typing import TypedDict, Unpack
2222

@@ -33,7 +33,7 @@ foo(name=1) # Error
3333

3434
The definition of `foo` above is equivalent to the one below, with keyword-only arguments `name` and `age`:
3535

36-
```
36+
```python
3737
def foo(*, name: str, age: int) -> None:
3838
...
3939
```
@@ -94,7 +94,7 @@ The new type inference algorithm was contributed by Ivan Levkivskyi. PR [16345](
9494

9595
Mypy now can narrow tuple types using `len()` checks. Example:
9696

97-
```
97+
```python
9898
def f(t: tuple[int, int] | tuple[int, int, int]) -> None:
9999
if len(t) == 2:
100100
a, b = t # Ok

0 commit comments

Comments
 (0)