class Type(mypy.nodes.Context): (source)
Known subclasses: mypy.types.ProperType
, mypy.types.RequiredType
, mypy.types.TypeAliasType
, mypy.types.TypeGuardedType
Class Method | deserialize |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
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 | can_be_false |
Undocumented |
Instance Variable | can_be_true |
Undocumented |
Inherited from Context
:
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 |
mypy.types.AnyType
, mypy.types.CallableType
, mypy.types.DeletedType
, mypy.types.Instance
, mypy.types.LiteralType
, mypy.types.NoneType
, mypy.types.Overloaded
, mypy.types.TupleType
, mypy.types.TypeAliasType
, mypy.types.TypedDictType
, mypy.types.TypeType
, mypy.types.TypeVarLikeType
, mypy.types.UnboundType
, mypy.types.UninhabitedType
, mypy.types.UnionType
mypy.nodes.Context.__init__
mypy.types.AnyType
, mypy.types.CallableArgument
, mypy.types.DeletedType
, mypy.types.FunctionLike
, mypy.types.Instance
, mypy.types.LiteralType
, mypy.types.NoneType
, mypy.types.PartialType
, mypy.types.PlaceholderType
, mypy.types.RawExpressionType
, mypy.types.RequiredType
, mypy.types.StarType
, mypy.types.TupleType
, mypy.types.TypeAliasType
, mypy.types.TypedDictType
, mypy.types.TypeGuardedType
, mypy.types.TypeList
, mypy.types.TypeType
, mypy.types.TypeVarLikeType
, mypy.types.UnboundType
, mypy.types.UninhabitedType
, mypy.types.UnionType
Undocumented
Parameters | |
line:int | Undocumented |
column:int | Undocumented |
mypy.types.RequiredType
, mypy.types.TypeGuardedType
Undocumented
Returns | |
str | Undocumented |
mypy.types.AnyType
, mypy.types.CallableArgument
, mypy.types.CallableType
, mypy.types.DeletedType
, mypy.types.EllipsisType
, mypy.types.ErasedType
, mypy.types.Instance
, mypy.types.LiteralType
, mypy.types.NoneType
, mypy.types.Overloaded
, mypy.types.ParamSpecType
, mypy.types.PartialType
, mypy.types.PlaceholderType
, mypy.types.RawExpressionType
, mypy.types.StarType
, mypy.types.TupleType
, mypy.types.TypeAliasType
, mypy.types.TypedDictType
, mypy.types.TypeList
, mypy.types.TypeType
, mypy.types.TypeVarType
, mypy.types.UnboundType
, mypy.types.UninhabitedType
, mypy.types.UnionType
Undocumented
Parameters | |
visitor:TypeVisitor[ | Undocumented |
Returns | |
T | Undocumented |
mypy.types.LiteralType
, mypy.types.NoneType
, mypy.types.TypeAliasType
, mypy.types.UninhabitedType
Undocumented
Returns | |
bool | Undocumented |
mypy.types.AnyType
, mypy.types.CallableArgument
, mypy.types.CallableType
, mypy.types.DeletedType
, mypy.types.EllipsisType
, mypy.types.Instance
, mypy.types.LiteralType
, mypy.types.NoneType
, mypy.types.Overloaded
, mypy.types.PlaceholderType
, mypy.types.RawExpressionType
, mypy.types.StarType
, mypy.types.TupleType
, mypy.types.TypeAliasType
, mypy.types.TypedDictType
, mypy.types.TypeList
, mypy.types.TypeType
, mypy.types.TypeVarLikeType
, mypy.types.UnboundType
, mypy.types.UninhabitedType
, mypy.types.UnionType
Undocumented
Returns | |
Union[ | Undocumented |
mypy.types.FunctionLike
, mypy.types.TupleType
, mypy.types.TypedDictType
, mypy.types.UnionType
Undocumented