@@ -1169,17 +1169,12 @@ class UninhabitedType(ProperType):
11691169 is_subtype(UninhabitedType, T) = True
11701170 """
11711171
1172- __slots__ = ("ambiguous" , "is_noreturn" )
1172+ __slots__ = ("ambiguous" ,)
11731173
1174- is_noreturn : bool # Does this come from a NoReturn? Purely for error messages.
1175- # It is important to track whether this is an actual NoReturn type, or just a result
1176- # of ambiguous type inference, in the latter case we don't want to mark a branch as
1177- # unreachable in binder.
11781174 ambiguous : bool # Is this a result of inference for a variable without constraints?
11791175
1180- def __init__ (self , is_noreturn : bool = False , line : int = - 1 , column : int = - 1 ) -> None :
1176+ def __init__ (self , line : int = - 1 , column : int = - 1 ) -> None :
11811177 super ().__init__ (line , column )
1182- self .is_noreturn = is_noreturn
11831178 self .ambiguous = False
11841179
11851180 def can_be_true_default (self ) -> bool :
@@ -1198,12 +1193,12 @@ def __eq__(self, other: object) -> bool:
11981193 return isinstance (other , UninhabitedType )
11991194
12001195 def serialize (self ) -> JsonDict :
1201- return {".class" : "UninhabitedType" , "is_noreturn" : self . is_noreturn }
1196+ return {".class" : "UninhabitedType" }
12021197
12031198 @classmethod
12041199 def deserialize (cls , data : JsonDict ) -> UninhabitedType :
12051200 assert data [".class" ] == "UninhabitedType"
1206- return UninhabitedType (is_noreturn = data [ "is_noreturn" ] )
1201+ return UninhabitedType ()
12071202
12081203
12091204class NoneType (ProperType ):
0 commit comments