mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
Use #[expect(lint)] over #[allow(lint)] where possible (#17822)
This commit is contained in:
@@ -170,7 +170,6 @@ impl FormatRule<Suite, PyFormatContext<'_>> for FormatSuite {
|
||||
} else {
|
||||
first.fmt(f)?;
|
||||
|
||||
#[allow(clippy::if_same_then_else)]
|
||||
let empty_line_after_docstring = if matches!(first, SuiteChildStatement::Docstring(_))
|
||||
&& self.kind == SuiteKind::Class
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user