We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The task is to raise a invalid-type-form error that states "Invalid type expression" for the following three literal types:
invalid-type-form
ruff/crates/red_knot_python_semantic/src/types/infer.rs
Lines 5661 to 5666 in 44aec36
The reason is that those literal types are handled appropriately in the relevant context like typing.Literal, typing.Annotated.
typing.Literal
typing.Annotated
This will also require fixing / updating the tests w.r.t. this change.
The text was updated successfully, but these errors were encountered:
typing.Callable
typing.Literal[]
2470777
Successfully merging a pull request may close this issue.
The task is to raise a
invalid-type-form
error that states "Invalid type expression" for the following three literal types:ruff/crates/red_knot_python_semantic/src/types/infer.rs
Lines 5661 to 5666 in 44aec36
The reason is that those literal types are handled appropriately in the relevant context like
typing.Literal
,typing.Annotated
.This will also require fixing / updating the tests w.r.t. this change.
The text was updated successfully, but these errors were encountered: