Skip to content

Commit

Permalink
add list of Python keywords (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriamanitra authored Jun 1, 2024
1 parent ee12cb3 commit f8c0089
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion config/stub_templates/python/stub_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ Word = "UNUSED"
casing = "snake_case"
allow_uppercase_vars = false
keywords = [
"for"
# https://docs.python.org/3/reference/lexical_analysis.html#keywords
"False", "await", "else", "import", "pass",
"None", "break", "except", "in", "raise",
"True", "class", "finally", "is", "return",
"and", "continue", "for", "lambda", "try",
"as", "def", "from", "nonlocal", "while",
"assert", "del", "global", "not", "with",
"async", "elif", "if", "or", "yield",
]

0 comments on commit f8c0089

Please sign in to comment.