Hacker News new | past | comments | ask | show | jobs | submit login

Run mypy on it and see if it complains. If it does I think it will even tell you what type is being emitted instead.



The question wasn’t what mypy will do. The question was what type will the function return.


mypy error: function 'x' returns type 'y' expected type 'z'

I don't recall the exact message but I think it will emit something along those lines.


The question wasn’t what mypy will do. The question was what type will the function return.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: