Skip to content

Commit 1d894a2

Browse files
hrolfurgylfaHrólfur
authored andcommitted
Move more sentinel references to lowercase
1 parent 6ccba16 commit 1d894a2

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

pyrefly/lib/query.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,9 @@ fn type_shape_kind(context: &TypeShapeContext, ty: &Type) -> TypeShapeKind {
425425
"typing.Literal",
426426
vec![named_leaf(literal.value.to_string())],
427427
),
428-
Type::Sentinel(sentinel) => named_type_shape_kind(
429-
"typing_extensions.Sentinel",
430-
vec![named_leaf(format!("{}", sentinel))],
431-
),
428+
Type::Sentinel(sentinel) => {
429+
named_type_shape_kind("sentinel", vec![named_leaf(format!("{}", sentinel))])
430+
}
432431
Type::LiteralString(_) => {
433432
named_type_shape_kind("typing_extensions.LiteralString", Vec::new())
434433
}

pyrefly/lib/tsp/type_conversion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ impl TypeConverter<'_> {
362362
PyreflyType::Materialization => builtin("Unknown"),
363363

364364
// --- Sentinel type ---
365-
PyreflyType::Sentinel(_) => builtin("Sentinel"),
365+
PyreflyType::Sentinel(_) => builtin("sentinel"),
366366
}
367367
}
368368

0 commit comments

Comments
 (0)