We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e9af5 commit f762f97Copy full SHA for f762f97
crates/ty_python_semantic/src/types/enums.rs
@@ -194,7 +194,10 @@ pub(crate) fn enum_metadata<'db>(
194
// we don't know if it's a duplicate or not.
195
if matches!(
196
value_ty,
197
- Type::IntLiteral(_) | Type::StringLiteral(_) | Type::BytesLiteral(_)
+ Type::BooleanLiteral(_)
198
+ | Type::IntLiteral(_)
199
+ | Type::StringLiteral(_)
200
+ | Type::BytesLiteral(_)
201
) {
202
if let Some(previous) = enum_values.insert(value_ty, name.clone()) {
203
aliases.insert(name.clone(), previous);
0 commit comments