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

[2] is (1) horrifying, and (2) descriptive of something Python is really good at (handling complexly-typed input datasets without requiring complex declarations).

The solution to that code is to remove the type hint, because you don't need it, because it simply describes the type of the input data.

edit: Several far better Python developers than I also said as much in the tweet replies.



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

Search: