mirror of https://github.com/astral-sh/ruff
[ty] Minor change to diagnostic message for invalid Literal uses (#19482)
This commit is contained in:
parent
215a1c55d4
commit
cb60ecef6b
|
|
@ -9965,7 +9965,7 @@ impl<'db> TypeInferenceBuilder<'db, '_> {
|
||||||
};
|
};
|
||||||
builder.into_diagnostic(
|
builder.into_diagnostic(
|
||||||
"Type arguments for `Literal` must be `None`, \
|
"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()
|
Type::unknown()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue