Basic hints say that a value is a string or a list of numbers. Real programs often need to say more: that a string must be one of three words, that a dictionary has certain keys, that an argument is a function with a given shape, or that an object only needs to have a certain method. The typing module has a tool for each of these. They all cost nothing at run time, and help a checker, and the next reader, a great deal.
More lessons in Complete Python Programming