I'm playing with Azure Functions and the main method is
def main(req: func.HttpRequest) -> func.HttpResponse:
Can someone please break down every part of this and explain what it means. Specifically what does req: func.HttpRequest
mean, is it forcing some data type for the parameter?
And what does -> func.HttpResponse
mean, is it forcing a return type?
I've never seen this syntax in Python before.