Recently, I have come across this -> in Python 3 when studying function declarations. What does this do and mean? I have never seen such a declaration other than in a Javascript function declaration up until now.
def f(self, s: 'str') -> 'bool':
pass
fwill return a boolean value. This enhances readability and makes it easy to debug.