2 ms·
Thank you! I updated the title. I think type annotation in Python3 is a great. And I thought there is a usage other than typing checking using mypy, so I try to
by c-bata 10y ago
Thank you! I updated the title.
I think type annotation in Python3 is a great.
And I thought there is a usage other than typing checking using mypy, so I try to convert url variables using the type information of function annotations.
- voltagex_ 10y agoAnnotations is how MVC in C# works (sometimes), too: https://www.asp.net/web-api/overview/web-api-routing-and-actions/attribute-routing-in-web-api-2 https://www.asp.net/web-api/overview/web-api-routing-and-act.... It's a great way of doing things, although I hope debugging the routes is a bit easier than it is in .NET