@@ -1029,19 +1029,16 @@ def try_getting_instance_fallback(typ: ProperType) -> Optional[Instance]:
10291029
10301030 """
10311031
1032- __slots__ = ('type' , 'args' , 'erased' , ' invalid' , 'type_ref' , 'last_known_value' )
1032+ __slots__ = ('type' , 'args' , 'invalid' , 'type_ref' , 'last_known_value' )
10331033
10341034 def __init__ (self , typ : mypy .nodes .TypeInfo , args : Sequence [Type ],
1035- line : int = - 1 , column : int = - 1 , erased : bool = False ,
1035+ line : int = - 1 , column : int = - 1 , * ,
10361036 last_known_value : Optional ['LiteralType' ] = None ) -> None :
10371037 super ().__init__ (line , column )
10381038 self .type = typ
10391039 self .args = tuple (args )
10401040 self .type_ref : Optional [str ] = None
10411041
1042- # True if result of type variable substitution
1043- self .erased = erased
1044-
10451042 # True if recovered after incorrect number of type arguments error
10461043 self .invalid = False
10471044
@@ -1137,15 +1134,14 @@ def deserialize(cls, data: Union[JsonDict, str]) -> 'Instance':
11371134
11381135 def copy_modified (self , * ,
11391136 args : Bogus [List [Type ]] = _dummy ,
1140- erased : Bogus [bool ] = _dummy ,
11411137 last_known_value : Bogus [Optional ['LiteralType' ]] = _dummy ) -> 'Instance' :
11421138 return Instance (
11431139 self .type ,
11441140 args if args is not _dummy else self .args ,
11451141 self .line ,
11461142 self .column ,
1147- erased if erased is not _dummy else self . erased ,
1148- last_known_value if last_known_value is not _dummy else self .last_known_value ,
1143+ last_known_value = last_known_value if last_known_value is not _dummy
1144+ else self .last_known_value ,
11491145 )
11501146
11511147 def has_readable_member (self , name : str ) -> bool :
0 commit comments