@@ -338,7 +338,7 @@ def is_meta_var(self) -> bool:
338338 return self .meta_level > 0
339339
340340
341- class TypeVarLikeDef (ProperType ):
341+ class TypeVarLikeType (ProperType ):
342342 name = '' # Name (may be qualified)
343343 fullname = '' # Fully qualified name
344344 id = None # type: TypeVarId
@@ -357,11 +357,11 @@ def serialize(self) -> JsonDict:
357357 raise NotImplementedError
358358
359359 @classmethod
360- def deserialize (cls , data : JsonDict ) -> 'TypeVarLikeDef ' :
360+ def deserialize (cls , data : JsonDict ) -> 'TypeVarLikeType ' :
361361 raise NotImplementedError
362362
363363
364- class TypeVarType (TypeVarLikeDef ):
364+ class TypeVarType (TypeVarLikeType ):
365365 """Definition of a single type variable."""
366366 values = None # type: List[Type] # Value restriction, empty list if no restriction
367367 upper_bound = None # type: Type
@@ -417,7 +417,7 @@ def deserialize(cls, data: JsonDict) -> 'TypeVarType':
417417 )
418418
419419
420- class ParamSpecDef (TypeVarLikeDef ):
420+ class ParamSpecDef (TypeVarLikeType ):
421421 """Definition of a single ParamSpec variable."""
422422
423423 def __repr__ (self ) -> str :
@@ -975,7 +975,7 @@ def __init__(self,
975975 fallback : Instance ,
976976 name : Optional [str ] = None ,
977977 definition : Optional [SymbolNode ] = None ,
978- variables : Optional [Sequence [TypeVarLikeDef ]] = None ,
978+ variables : Optional [Sequence [TypeVarLikeType ]] = None ,
979979 line : int = - 1 ,
980980 column : int = - 1 ,
981981 is_ellipsis_args : bool = False ,
@@ -1029,7 +1029,7 @@ def copy_modified(self,
10291029 fallback : Bogus [Instance ] = _dummy ,
10301030 name : Bogus [Optional [str ]] = _dummy ,
10311031 definition : Bogus [SymbolNode ] = _dummy ,
1032- variables : Bogus [Sequence [TypeVarLikeDef ]] = _dummy ,
1032+ variables : Bogus [Sequence [TypeVarLikeType ]] = _dummy ,
10331033 line : Bogus [int ] = _dummy ,
10341034 column : Bogus [int ] = _dummy ,
10351035 is_ellipsis_args : Bogus [bool ] = _dummy ,
@@ -2085,7 +2085,7 @@ def visit_callable_type(self, t: CallableType) -> str:
20852085 else :
20862086 vs .append (var .name )
20872087 else :
2088- # For other TypeVarLikeDefs , just use the repr
2088+ # For other TypeVarLikeTypes , just use the repr
20892089 vs .append (repr (var ))
20902090 s = '{} {}' .format ('[{}]' .format (', ' .join (vs )), s )
20912091
0 commit comments