No reveal_type
diagnostic for variables with bare type qualifier annotations
#9720
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Describe the bug
Pyright seems to omit
reveal_type
diagnostics for class variables annotated with a bareClassVar
or a bareFinal
(the latter of which makes little sense without an assignment).This is certainly not a big problem, just a little surprising, as Pyright even shows diagnostics for symbols that are not defined at all (
reveal_type(not_defined_anywhere)
). It's not entirely clear to me if a bareClassVar
should even be allowed (it's not mentioned anywhere in the documentation/spec), and a bareFinal
without an assignment raises another diagnostic, but maybe this should be fixed anyway.Code or Screenshots
Playground link
Version information
Pyright 1.1.392
The text was updated successfully, but these errors were encountered: