We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0590b38 commit 4b003d9Copy full SHA for 4b003d9
crates/ty_python_semantic/src/types/infer.rs
@@ -7743,7 +7743,9 @@ impl<'db> TypeInferenceBuilder<'db> {
7743
message: std::fmt::Arguments,
7744
) -> Type<'db> {
7745
if let Some(builder) = self.context.report_lint(&INVALID_TYPE_FORM, expression) {
7746
- builder.into_diagnostic(message);
+ let mut diag = builder.into_diagnostic(message);
7747
+ diag.info("See the following page for a reference on valid type expressions:");
7748
+ diag.info("https://typing.python.org/en/latest/spec/annotations.html#type-and-annotation-expressions");
7749
}
7750
Type::unknown()
7751
0 commit comments