Skip to content

Commit 918fa48

Browse files
committed
Change a short name of Bool and None
changes a short name of True, False, None from "keyword" to "True", "False", "None" themselves
1 parent 3c07c7c commit 918fa48

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ast/src/impls.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ impl<U> ExprKind<U> {
2020
| Constant::Complex { .. }
2121
| Constant::Bytes(_) => "literal",
2222
Constant::Tuple(_) => "tuple",
23-
Constant::Bool(_) | Constant::None => "keyword",
23+
Constant::Bool(b) => {
24+
if *b {
25+
"True"
26+
} else {
27+
"False"
28+
}
29+
}
30+
Constant::None => "None",
2431
Constant::Ellipsis => "ellipsis",
2532
},
2633
ExprKind::List { .. } => "list",

0 commit comments

Comments
 (0)