This is function annotations. It can be use to attach additional information to the arguments or a return values of functions. It is a useful way to say how a function must be use.
Functions annotations are stored in a function's __annotations__
attribute.
Use Cases (From documentation)
From python-3.5
it can be used for Type Hints