mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-05 04:08:21 +02:00
moved isinstance and issubclass to the start of operator because they were being overwritten "by" is and "in"
This commit is contained in:
parent
5207e18928
commit
47f191c9be
1 changed files with 4 additions and 3 deletions
|
@ -5,9 +5,10 @@ common_token_map = { # these operators and function are considered safe to use
|
|||
operator: operator
|
||||
for operator in
|
||||
["+", "-", "*", "/", "%", "**", ",", "(", ")", "[", "]", "==", "!=", "in", ">", "<", ">=", "<=", "and", "or", "&",
|
||||
"|", "^", "~", "<<", ">>", ":", "not", "is", "if", "else", "abs", "int", "bin", "hex", "oct", "chr", "ord", "len",
|
||||
"str", "bool", "float", "round", "min", "max", "sum", "zip", "any", "all", "issubclass", "reversed", "enumerate",
|
||||
"list", "sorted", "hasattr", "for", "range", "type", "isinstance", "repr", "None", "True", "False", "getattr"
|
||||
"|", "^", "~", "<<", ">>", ":", "isinstance", "issubclass", "not", "is", "if", "else", "abs", "int",
|
||||
"bin", "hex", "oct", "chr", "ord", "len", "str", "bool", "float", "round", "min", "max", "sum", "zip",
|
||||
"any", "all", "reversed", "enumerate", "list", "sorted", "hasattr", "for", "range", "type", "repr", "None",
|
||||
"True", "False", "getattr"
|
||||
]
|
||||
} | { # these methods are considered safe, except for the magic methods
|
||||
f".{method}": f".{method}"
|
||||
|
|
Loading…
Reference in a new issue