logoalt Hacker News

tasukiyesterday at 6:07 PM2 repliesview on HN

Tell me more please: how does one use types in Python? Unfortunately I write Python professionally these days (it is the language that has all the libraries) and hate it with a passion.


Replies

baqyesterday at 9:30 PM

mypy is the simplest/oldest option, look into pyright and ty, too.

install uv and then

    uvx mypy
should do the rest.
seg_loltoday at 1:34 PM

You will never get good if you continue to hate it. You don't have to like it, but hating it creates a mental block.