What is this kind of Python code means?

I alway see some codes as follows
 
def func(args) -> str: ...
when will this type be used?
You already invited:

greg

Upvotes from:

New feature in Python 3.5+,type hint

If you wanna answer this question please Login or Register