[red-knot] Autoformat mdtest Python snippets using blacken-docs (#13809)

This commit is contained in:
Alex Waygood 2024-10-19 15:57:06 +01:00 committed by GitHub
parent 2ff36530c3
commit 36cb1199cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 331 additions and 132 deletions

View file

@ -191,7 +191,7 @@ reveal_type(d) # revealed: Literal[2]
### Simple unpacking
```py
a, b = 'ab'
a, b = "ab"
reveal_type(a) # revealed: LiteralString
reveal_type(b) # revealed: LiteralString
```
@ -200,7 +200,7 @@ reveal_type(b) # revealed: LiteralString
```py
# TODO: Add diagnostic (there aren't enough values to unpack)
a, b, c = 'ab'
a, b, c = "ab"
reveal_type(a) # revealed: LiteralString
reveal_type(b) # revealed: LiteralString
reveal_type(c) # revealed: Unknown
@ -210,7 +210,7 @@ reveal_type(c) # revealed: Unknown
```py
# TODO: Add diagnostic (too many values to unpack)
a, b = 'abc'
a, b = "abc"
reveal_type(a) # revealed: LiteralString
reveal_type(b) # revealed: LiteralString
```