[ruff] Implemented used-dummy-variable (RUF052) (#14611)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Lokejoke 2024-12-03 08:36:16 +01:00 committed by GitHub
parent a69dfd4a74
commit bf0fd04e4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 778 additions and 8 deletions

View file

@ -1,5 +1,5 @@
// See: https://github.com/python/cpython/blob/9d692841691590c25e6cf5b2250a594d3bf54825/Lib/keyword.py#L18
pub(crate) fn is_keyword(name: &str) -> bool {
pub fn is_keyword(name: &str) -> bool {
matches!(
name,
"False"