Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It seems to me that type inference would be silly in this case. Type suggestion during mypy checks might be useful though.

Function x does not specify a type, but returns SomeHelpfulTypeString. We recommend you use that.

Put it behind a flag and call it a day. Maybe even have a way of requesting type suggestions for functions during development



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

Search: