From 2087defaf8b06282f558705f3f5c907de6f80476 Mon Sep 17 00:00:00 2001 From: David Peter Date: Tue, 22 Jul 2025 11:34:39 +0200 Subject: [PATCH] [ty] Minor change to diagnostic message for invalid Literal uses --- crates/ty_python_semantic/src/types/infer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ty_python_semantic/src/types/infer.rs b/crates/ty_python_semantic/src/types/infer.rs index 6bbfe74f80dce..0bdee17a32f2d 100644 --- a/crates/ty_python_semantic/src/types/infer.rs +++ b/crates/ty_python_semantic/src/types/infer.rs @@ -9583,7 +9583,7 @@ impl<'db> TypeInferenceBuilder<'db, '_> { }; builder.into_diagnostic( "Type arguments for `Literal` must be `None`, \ - a literal value (int, bool, str, or bytes), or an enum value", + a literal value (int, bool, str, or bytes), or an enum member", ); } Type::unknown()