Dataclass support doesn't fully resolve ClassVar annotation #876
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Issue
Pylance complains with following sample code, with type checking mode set to
basic
orstrict
:Screenshot here:
The warning persists when
ClassVar
is imported under any alias, likeClassV
,typing.ClassVar
,whatever.ClassVar
. The warning only goes away if I use the exact wordClassVar
in annotation. That is replacing first and last line in above sample code with:The text was updated successfully, but these errors were encountered: