@@ -1029,19 +1029,16 @@ def try_getting_instance_fallback(typ: ProperType) -> Optional[Instance]:
1029
1029
1030
1030
"""
1031
1031
1032
- __slots__ = ('type' , 'args' , 'erased' , ' invalid' , 'type_ref' , 'last_known_value' )
1032
+ __slots__ = ('type' , 'args' , 'invalid' , 'type_ref' , 'last_known_value' )
1033
1033
1034
1034
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 , * ,
1036
1036
last_known_value : Optional ['LiteralType' ] = None ) -> None :
1037
1037
super ().__init__ (line , column )
1038
1038
self .type = typ
1039
1039
self .args = tuple (args )
1040
1040
self .type_ref : Optional [str ] = None
1041
1041
1042
- # True if result of type variable substitution
1043
- self .erased = erased
1044
-
1045
1042
# True if recovered after incorrect number of type arguments error
1046
1043
self .invalid = False
1047
1044
@@ -1137,15 +1134,14 @@ def deserialize(cls, data: Union[JsonDict, str]) -> 'Instance':
1137
1134
1138
1135
def copy_modified (self , * ,
1139
1136
args : Bogus [List [Type ]] = _dummy ,
1140
- erased : Bogus [bool ] = _dummy ,
1141
1137
last_known_value : Bogus [Optional ['LiteralType' ]] = _dummy ) -> 'Instance' :
1142
1138
return Instance (
1143
1139
self .type ,
1144
1140
args if args is not _dummy else self .args ,
1145
1141
self .line ,
1146
1142
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 ,
1149
1145
)
1150
1146
1151
1147
def has_readable_member (self , name : str ) -> bool :
0 commit comments