chore: skip unnecessary key checks prior to accessing a dictionary (#4497)

This commit is contained in:
Bowen Liang 2024-05-19 18:30:45 +08:00 • committed by GitHub
commit 04ad46dd31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 45 additions and 44 deletions

View file

@ -13,6 +13,7 @@ select = [
"I001", # unsorted-imports
"I002", # missing-required-import
"UP", # pyupgrade rules
"RUF019", # unnecessary-key-check
]
ignore = [
"F403", # undefined-local-with-import-star