File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -210,15 +210,15 @@ def visit_unbound_type(self, t: UnboundType) -> Type:
210
210
return TypeType .make_normalized (item , line = t .line )
211
211
elif fullname == 'typing.ClassVar' :
212
212
if self .nesting_level > 0 :
213
- self .fail ('Invalid type: typing. ClassVar nested inside other type' , t )
213
+ self .fail ('Invalid type: ClassVar nested inside other type' , t )
214
214
if len (t .args ) == 0 :
215
215
return AnyType (TypeOfAny .from_omitted_generics , line = t .line , column = t .column )
216
216
if len (t .args ) != 1 :
217
217
self .fail ('ClassVar[...] must have at most one type argument' , t )
218
218
return AnyType (TypeOfAny .from_error )
219
219
item = self .anal_type (t .args [0 ])
220
220
if isinstance (item , TypeVarType ) or get_type_vars (item ):
221
- self .fail ('Invalid type: typing. ClassVar cannot be generic' , t )
221
+ self .fail ('Invalid type: ClassVar cannot be generic' , t )
222
222
return AnyType (TypeOfAny .from_error )
223
223
return item
224
224
elif fullname in ('mypy_extensions.NoReturn' , 'typing.NoReturn' ):
You can’t perform that action at this time.
0 commit comments