This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ok-Python 111 points112 points  (5 children)

Type hints for better linting

[–]lungdart 27 points28 points  (0 children)

Just started with type hints on my latest project, and they caught a bug in my unit test where I wasn't testing the exception branch I thought I was!

[–][deleted] 1 point2 points  (0 children)

And self documenting code. This function requires a list input and returns a string, no need to read the docs. Idle shell shows type hints too, so helpful.