diff --git a/ast/src/impls.rs b/ast/src/impls.rs index 666acd1fd..a93028874 100644 --- a/ast/src/impls.rs +++ b/ast/src/impls.rs @@ -20,7 +20,14 @@ impl ExprKind { | 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",