Skip to content

Commit cb60ece

Browse files
authored
[ty] Minor change to diagnostic message for invalid Literal uses (#19482)
1 parent 215a1c5 commit cb60ece

File tree

1 file changed

+1
-1
lines changed
  • crates/ty_python_semantic/src/types

1 file changed

+1
-1
lines changed

crates/ty_python_semantic/src/types/infer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9965,7 +9965,7 @@ impl<'db> TypeInferenceBuilder<'db, '_> {
99659965
};
99669966
builder.into_diagnostic(
99679967
"Type arguments for `Literal` must be `None`, \
9968-
a literal value (int, bool, str, or bytes), or an enum value",
9968+
a literal value (int, bool, str, or bytes), or an enum member",
99699969
);
99709970
}
99719971
Type::unknown()

0 commit comments

Comments
 (0)