3 ms·
That types criticism is a little bit old now. 3.6 will happily accept type annotations, and mypy can check them. While I get what the decorator complaint was a
by viraptor 9y ago
That types criticism is a little bit old now. 3.6 will happily accept type annotations, and mypy can check them.
While I get what the decorator complaint was about, the example was just weird... My first follow up question would be: so how do I route 2 paths to that function?
@route ('/')
@route ('other')
def ...
seems like a trivial answer. Now, how do I do that with that block-taking function? Maybe I can pass in an array of paths, maybe not...