|
|
|
|
|
by frumiousirc
38 days ago
|
|
Am I alone in thinking type hints are largely a waste of time in Python and can be actively harmful? I had claude run ty via this new "uv check" on a moderately sized Python package (cli+tui to a multi-transport messaging system) and it found 67 things. Claude checked each finding for bugginess and found 1 is marginally worth fixing. A large fraction of the findings were ty guessing the type and being wrong. Hinting would I guess remove those wrong guesses but hinting is a PITA and greatly increases code size, both of which is bad for human and LLM. Do people really get benefit from going all-in with type hinting? |
|