mypy Type check
# mypy: ignore-errors
# type: ignore
Built-in types
Simple types
Here are examples of some common built-in types:
Type
Description
int
integer
float
floating point number
bool
boolean value (subclass of int)
str
text, sequence of unicode codepoints
bytes
8-bit string, sequence of byte values
object
an arbitrary object (object is the common base class)
All built-in classes can be used as types.