class documentation

class UninhabitedType(ProperType): (source)

View In Hierarchy

This type has no members.

This type is the bottom type. With strict Optional checking, it is the only common subtype between all other types, which allows meet to be well defined. Without strict Optional checking, NoneType fills this role.

In general, for any type T:
join(UninhabitedType, T) = T meet(UninhabitedType, T) = UninhabitedType is_subtype(UninhabitedType, T) = True
Class Method deserialize Undocumented
Method __eq__ Undocumented
Method __hash__ Undocumented
Method __init__ Undocumented
Method accept Undocumented
Method can​_be​_false​_default Undocumented
Method can​_be​_true​_default Undocumented
Method serialize Undocumented
Class Variable __slots__ Undocumented
Instance Variable ambiguous Undocumented
Instance Variable is​_noreturn Undocumented

Inherited from Type (via ProperType):

Method __repr__ Undocumented
Instance Variable can​_be​_false Undocumented
Instance Variable can​_be​_true Undocumented

Inherited from Context (via ProperType, Type):

Method get​_column Don't use. Use x.column.
Method get​_line Don't use. Use x.line.
Method set​_line If target is a node, pull line (and column) information into this node. If column is specified, this will override any column information coming from a node.
Instance Variable column Undocumented
Instance Variable end​_line Undocumented
Instance Variable line Undocumented
@classmethod
def deserialize(cls, data): (source)

Undocumented

Parameters
data:JsonDictUndocumented
Returns
UninhabitedTypeUndocumented
def __eq__(self, other): (source)

Undocumented

Parameters
other:objectUndocumented
Returns
boolUndocumented
def __hash__(self): (source)

Undocumented

Returns
intUndocumented
def __init__(self, is_noreturn=False, line=-1, column=-1): (source)

Undocumented

Parameters
is​_noreturn:boolUndocumented
line:intUndocumented
column:intUndocumented
def accept(self, visitor): (source)

Undocumented

Parameters
visitor:TypeVisitor[T]Undocumented
Returns
TUndocumented
def can_be_false_default(self): (source)

Undocumented

Returns
boolUndocumented
def can_be_true_default(self): (source)

Undocumented

Returns
boolUndocumented
def serialize(self): (source)

Undocumented

Returns
JsonDictUndocumented
__slots__: tuple[str, ...] = (source)

Undocumented

ambiguous: bool = (source)

Undocumented

is_noreturn = (source)

Undocumented