How does python know data types exist in other classes?

how python know that the data type i choose is exits in other class?