Change a short name of Bool and None

changes a short name of True, False, None from "keyword" to "True", "False", "None" themselves
This commit is contained in:
Myeongseon Choi committed 2022-07-20 13:28:01 +09:00
1 parent 3c07c7ce00
commit 918fa48eda
1 file changed
+8 -1
+8 -1
View File
@@ -20,7 +20,14 @@ impl<U> ExprKind<U> {
| Constant::Complex { .. }
| Constant::Bytes(_) => "literal",
Constant::Tuple(_) => "tuple",
Constant::Bool(_) | Constant::None => "keyword",
Constant::Bool(b) => {
if *b {
"True"
} else {
"False"
}
}
Constant::None => "None",
Constant::Ellipsis => "ellipsis",
},
ExprKind::List { .. } => "list",