top | item 30170659

(no title)

rajacombinator | 4 years ago

I thought type hints in Python were dumb until I combined them with VSCode. Holy cow the autocomplete and tool tips are incredible, there’s no way I could go back.

discuss

order

wheelerof4te|4 years ago

Of course, they are almost required there. Microsoft's Pyright extension is useless without type hints. I know this because I tried to use VSCode without them. It reminds me of those free-to-play MMORPGs, where you have to pay to unlock their entire content.

I mentioned the point of making our tools too reliant on type hints in my opening.

dragonwriter|4 years ago

> Microsoft's Pyright extension is useless without type hints.

I do lots of work with both annotated and unannotated Python. Pylance (which is what is built into VSCode and based on Pyright) is not useless on unannotated code.

> It reminds me of those free-to-play MMORPGs, where you have to pay to unlock their entire content.

Well, yeah, there are things that type annotations allow that you can't statically determine without them. That's...rather the point.