mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-28 23:43:53 +00:00
[ruff
] Implemented used-dummy-variable
(RUF052
) (#14611)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
a69dfd4a74
commit
bf0fd04e4e
12 changed files with 778 additions and 8 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue