Is there any such equivalent of Java
String myMethod (MyClass argument) {...}
in Python?
Thank you, Tomas
Python 3.x has function annotations where you can declare argument and return types:
def myMethod(argument: MyClass) -> str: ...
But currently Python does nothing with them, they serve as documentation only.