mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-22 19:34:23 +00:00
[ty] Minor change to diagnostic message for invalid Literal uses (#19482)
This commit is contained in:
parent
215a1c55d4
commit
cb60ecef6b
1 changed files with 1 additions and 1 deletions
|
@ -9965,7 +9965,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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue