You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromtypingimportClassVarclassC:
x: ClassVar=1reveal_type(C.x) # Revealed type is 'Any'
ClassVar is not a generic type (and not really a type, rather an access qualifier). So it will be better if a bare ClassVar would use inference instead of defaulting to Any thus reducing verbosity or false negatives (although --disallow-any-generics actually flags this).
Probably not high priority.
msullivan, by-Exist, AlexWaygood, ryderben and gschaffner