What does '->' mean in a function declaration in Python 3?
What does '->' mean in a function declaration in Python 3? Question: 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’: …
Total answers: 2