Implement B009 (#669)

This commit is contained in:
Harutaka Kawamura
2022-11-11 03:52:20 +09:00
committed by GitHub
parent 9d8cd2d2fe
commit 1888f6d41b
11 changed files with 149 additions and 2 deletions

7
src/python/keyword.rs Normal file
View 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",
];

View File

@@ -1,3 +1,4 @@
pub mod builtins;
pub mod future;
pub mod keyword;
pub mod typing;