@@ -338,7 +338,7 @@ def is_meta_var(self) -> bool:
338
338
return self .meta_level > 0
339
339
340
340
341
- class TypeVarLikeDef (ProperType ):
341
+ class TypeVarLikeType (ProperType ):
342
342
name = '' # Name (may be qualified)
343
343
fullname = '' # Fully qualified name
344
344
id = None # type: TypeVarId
@@ -357,11 +357,11 @@ def serialize(self) -> JsonDict:
357
357
raise NotImplementedError
358
358
359
359
@classmethod
360
- def deserialize (cls , data : JsonDict ) -> 'TypeVarLikeDef ' :
360
+ def deserialize (cls , data : JsonDict ) -> 'TypeVarLikeType ' :
361
361
raise NotImplementedError
362
362
363
363
364
- class TypeVarType (TypeVarLikeDef ):
364
+ class TypeVarType (TypeVarLikeType ):
365
365
"""Definition of a single type variable."""
366
366
values = None # type: List[Type] # Value restriction, empty list if no restriction
367
367
upper_bound = None # type: Type
@@ -417,7 +417,7 @@ def deserialize(cls, data: JsonDict) -> 'TypeVarType':
417
417
)
418
418
419
419
420
- class ParamSpecDef (TypeVarLikeDef ):
420
+ class ParamSpecDef (TypeVarLikeType ):
421
421
"""Definition of a single ParamSpec variable."""
422
422
423
423
def __repr__ (self ) -> str :
@@ -975,7 +975,7 @@ def __init__(self,
975
975
fallback : Instance ,
976
976
name : Optional [str ] = None ,
977
977
definition : Optional [SymbolNode ] = None ,
978
- variables : Optional [Sequence [TypeVarLikeDef ]] = None ,
978
+ variables : Optional [Sequence [TypeVarLikeType ]] = None ,
979
979
line : int = - 1 ,
980
980
column : int = - 1 ,
981
981
is_ellipsis_args : bool = False ,
@@ -1029,7 +1029,7 @@ def copy_modified(self,
1029
1029
fallback : Bogus [Instance ] = _dummy ,
1030
1030
name : Bogus [Optional [str ]] = _dummy ,
1031
1031
definition : Bogus [SymbolNode ] = _dummy ,
1032
- variables : Bogus [Sequence [TypeVarLikeDef ]] = _dummy ,
1032
+ variables : Bogus [Sequence [TypeVarLikeType ]] = _dummy ,
1033
1033
line : Bogus [int ] = _dummy ,
1034
1034
column : Bogus [int ] = _dummy ,
1035
1035
is_ellipsis_args : Bogus [bool ] = _dummy ,
@@ -2085,7 +2085,7 @@ def visit_callable_type(self, t: CallableType) -> str:
2085
2085
else :
2086
2086
vs .append (var .name )
2087
2087
else :
2088
- # For other TypeVarLikeDefs , just use the repr
2088
+ # For other TypeVarLikeTypes , just use the repr
2089
2089
vs .append (repr (var ))
2090
2090
s = '{} {}' .format ('[{}]' .format (', ' .join (vs )), s )
2091
2091
0 commit comments