[flake8-markupsafe] Adds Implementation for MS001 via RUF035 (#14224)

Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
David Salvisberg 2024-11-11 19:30:03 +01:00 committed by GitHub
parent b8a65182dd
commit f82ee8ea59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 321 additions and 1 deletions

View file

@ -1272,7 +1272,9 @@ impl<'a> SemanticModel<'a> {
"datetime" => self.seen.insert(Modules::DATETIME),
"django" => self.seen.insert(Modules::DJANGO),
"fastapi" => self.seen.insert(Modules::FASTAPI),
"flask" => self.seen.insert(Modules::FLASK),
"logging" => self.seen.insert(Modules::LOGGING),
"markupsafe" => self.seen.insert(Modules::MARKUPSAFE),
"mock" => self.seen.insert(Modules::MOCK),
"numpy" => self.seen.insert(Modules::NUMPY),
"os" => self.seen.insert(Modules::OS),
@ -1858,6 +1860,8 @@ bitflags! {
const ANYIO = 1 << 20;
const FASTAPI = 1 << 21;
const COPY = 1 << 22;
const MARKUPSAFE = 1 << 23;
const FLASK = 1 << 24;
}
}