mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Improve the documentation of E201/E202 (#14983)
## Summary The summary is misleading, as well as the `whitespace-after-open-bracket` and `whitespace-before-close-bracket` names - it's not only brackets, but also parentheses and braces. Align the documentation with the actual behaviour. Don't change the names, but align the documentation with the behaviour. ## Test Plan No test (documentation).
This commit is contained in:
parent
112e9d2d82
commit
2d15d7d1af
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ use crate::checkers::logical_lines::LogicalLinesContext;
|
|||
use super::{LogicalLine, Whitespace};
|
||||
|
||||
/// ## What it does
|
||||
/// Checks for the use of extraneous whitespace after "(".
|
||||
/// Checks for the use of extraneous whitespace after "(", "[" or "{".
|
||||
///
|
||||
/// ## Why is this bad?
|
||||
/// [PEP 8] recommends the omission of whitespace in the following cases:
|
||||
|
@ -50,7 +50,7 @@ impl AlwaysFixableViolation for WhitespaceAfterOpenBracket {
|
|||
}
|
||||
|
||||
/// ## What it does
|
||||
/// Checks for the use of extraneous whitespace before ")".
|
||||
/// Checks for the use of extraneous whitespace before ")", "]" or "}".
|
||||
///
|
||||
/// ## Why is this bad?
|
||||
/// [PEP 8] recommends the omission of whitespace in the following cases:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue