zlacker

[parent] [thread] 1 comments
1. Balina+(OP)[view] [source] 2026-02-02 16:57:29
Yeah, if you're going to use static type checks, which you should, you really want to run the checker in strict mode to catch oversights such as generic container types without a qualifier.

Although I've found that much of the pain of static type checks in Python is really that a lot of popular modules expose incorrect type hints that need to be worked around, which really isn't a pleasant way to spend one's finite time on Earth.

replies(1): >>girvo+1Q
2. girvo+1Q[view] [source] 2026-02-02 20:58:49
>>Balina+(OP)
> that a lot of popular modules expose incorrect type hints that need to be worked around

Typescript (and Flow to a lesser extent) had this problem once upon a time. It’s a lot better today, so I imagine it will continue to improve.

[go to top]