[ruff] re and regex calls with unraw string as first argument (RUF039) (#14446)

This commit is contained in:
InSync 2024-11-19 19:44:55 +07:00 committed by GitHub
parent f8c20258ae
commit 5f09d4a90a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 832 additions and 0 deletions

View file

@ -1281,6 +1281,7 @@ impl<'a> SemanticModel<'a> {
"pandas" => self.seen.insert(Modules::PANDAS),
"pytest" => self.seen.insert(Modules::PYTEST),
"re" => self.seen.insert(Modules::RE),
"regex" => self.seen.insert(Modules::REGEX),
"six" => self.seen.insert(Modules::SIX),
"subprocess" => self.seen.insert(Modules::SUBPROCESS),
"tarfile" => self.seen.insert(Modules::TARFILE),
@ -1858,6 +1859,7 @@ bitflags! {
const MARKUPSAFE = 1 << 23;
const FLASK = 1 << 24;
const ATTRS = 1 << 25;
const REGEX = 1 << 26;
}
}