mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-26 11:59:10 +00:00
[ruff
] Also report problems for attrs
dataclasses in preview mode (RUF008
, RUF009
) (#14327)
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
parent
9a3001b571
commit
d8b1afbc6e
12 changed files with 344 additions and 51 deletions
|
@ -1287,6 +1287,7 @@ impl<'a> SemanticModel<'a> {
|
|||
"trio" => self.seen.insert(Modules::TRIO),
|
||||
"typing" => self.seen.insert(Modules::TYPING),
|
||||
"typing_extensions" => self.seen.insert(Modules::TYPING_EXTENSIONS),
|
||||
"attr" | "attrs" => self.seen.insert(Modules::ATTRS),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
@ -1856,6 +1857,7 @@ bitflags! {
|
|||
const COPY = 1 << 22;
|
||||
const MARKUPSAFE = 1 << 23;
|
||||
const FLASK = 1 << 24;
|
||||
const ATTRS = 1 << 25;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue