logoalt Hacker News

Sinidiryesterday at 9:47 PM0 repliesview on HN

In the example given in the article i think the correct behavior would have been to infer the type backwards from the return type of the function. Is that not why mypy actually errors here?