Skip to content

Commit 3125332

Browse files
authored
[red-knot] Format mdtest snippets with the latest version of black (#15819)
1 parent 15d886a commit 3125332

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repos:
5656
.*?invalid(_.+)*_syntax\.md
5757
)$
5858
additional_dependencies:
59-
- black==24.10.0
59+
- black==25.1.0
6060

6161
- repo: https://github.com/crate-ci/typos
6262
rev: v1.29.4

crates/red_knot_python_semantic/resources/mdtest/annotations/literal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def union_example(
106106
Literal["B"],
107107
Literal[True],
108108
None,
109-
]
109+
],
110110
):
111111
reveal_type(x) # revealed: Unknown | Literal[-1, "A", b"A", b"\x00", b"\x07", 0, 1, "B", "foo", "bar", True] | None
112112
```

crates/red_knot_python_semantic/resources/mdtest/suppressions/type_ignore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ b = a / 0
151151
```py
152152
"""
153153
File level suppressions must come before any non-trivia token,
154-
including module docstrings.
154+
including module docstrings.
155155
"""
156156

157157
# error: [unused-ignore-comment] "Unused blanket `type: ignore` directive"

crates/red_knot_python_semantic/resources/mdtest/unpacking.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ reveal_type(b) # revealed: Unknown
282282

283283
```py
284284
# error: [invalid-assignment] "Not enough values to unpack (expected 2, got 1)"
285-
(a, b) = "\u9E6C"
285+
(a, b) = "\u9e6c"
286286

287287
reveal_type(a) # revealed: LiteralString
288288
reveal_type(b) # revealed: Unknown
@@ -292,7 +292,7 @@ reveal_type(b) # revealed: Unknown
292292

293293
```py
294294
# error: [invalid-assignment] "Not enough values to unpack (expected 2, got 1)"
295-
(a, b) = "\U0010FFFF"
295+
(a, b) = "\U0010ffff"
296296

297297
reveal_type(a) # revealed: LiteralString
298298
reveal_type(b) # revealed: Unknown
@@ -301,7 +301,7 @@ reveal_type(b) # revealed: Unknown
301301
### Surrogates
302302

303303
```py
304-
(a, b) = "\uD800\uDFFF"
304+
(a, b) = "\ud800\udfff"
305305

306306
reveal_type(a) # revealed: LiteralString
307307
reveal_type(b) # revealed: LiteralString

0 commit comments

Comments
 (0)