mirror of https://github.com/astral-sh/ruff
[`flake8-comprehensions`] Fix typo in `C416` documentation (#21184)
## Summary Adds missing curly brace to the C416 documentation. ## Test Plan Build the docs
This commit is contained in:
parent
21ec8aa7d4
commit
78ee7ae925
|
|
@ -43,7 +43,7 @@ use crate::rules::flake8_comprehensions::fixes;
|
||||||
/// >>> {x: y for x, y in d1} # Iterates over the keys of a mapping
|
/// >>> {x: y for x, y in d1} # Iterates over the keys of a mapping
|
||||||
/// {1: 2, 4: 5}
|
/// {1: 2, 4: 5}
|
||||||
/// >>> dict(d1) # Ruff's incorrect suggested fix
|
/// >>> dict(d1) # Ruff's incorrect suggested fix
|
||||||
/// (1, 2): 3, (4, 5): 6}
|
/// {(1, 2): 3, (4, 5): 6}
|
||||||
/// >>> dict(d1.keys()) # Correct fix
|
/// >>> dict(d1.keys()) # Correct fix
|
||||||
/// {1: 2, 4: 5}
|
/// {1: 2, 4: 5}
|
||||||
/// ```
|
/// ```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue