mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 13:00:52 -05:00
Implement B009 (#669)
This commit is contained in:
committed by
GitHub
parent
9d8cd2d2fe
commit
1888f6d41b
7
src/python/keyword.rs
Normal file
7
src/python/keyword.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
// See: https://github.com/python/cpython/blob/9d692841691590c25e6cf5b2250a594d3bf54825/Lib/keyword.py#L18
|
||||
pub const KWLIST: [&str; 35] = [
|
||||
"False", "None", "True", "and", "as", "assert", "async", "await", "break", "class", "continue",
|
||||
"def", "del", "elif", "else", "except", "finally", "for", "from", "global", "if", "import",
|
||||
"in", "is", "lambda", "nonlocal", "not", "or", "pass", "raise", "return", "try", "while",
|
||||
"with", "yield",
|
||||
];
|
||||
@@ -1,3 +1,4 @@
|
||||
pub mod builtins;
|
||||
pub mod future;
|
||||
pub mod keyword;
|
||||
pub mod typing;
|
||||
|
||||
Reference in New Issue
Block a user