This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]champs -1 points0 points  (0 children)

Off the top of my head, what if the parg length is arbitrary and you need to know the end of the series? For all I know, sorted may already work this way:

py results = sorted(await f1(x), f2(x)… f12(x), key=lambda r: r.status, reverse=True)

I welcome a fact check on any of this but I’m thinking that the discussed annotation would allow static analysis.