4 ms·
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 w
by Sinidir 7mo ago
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?
- ocamoss 7mo agoIf you're referring to the `first_three_lines` example in strategy 3, Mypy would give the same error even if we changed the return value to something unrelated like `return ["something"]`.