mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
[red-knot] Autoformat mdtest
Python snippets using blacken-docs
(#13809)
This commit is contained in:
parent
2ff36530c3
commit
36cb1199cc
45 changed files with 331 additions and 132 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue