The typing spec currently says this: Pythonโ€™s numeric types complex, float and int are not subtypes of each other, but to support common use cases, the type system contains a straightforward shortcut: ...