448
Python! (europe.pub)
you are viewing a single comment's thread
view the rest of the comments
[-] mkwt@lemmy.world 1 points 5 days ago

Optional type annotations started to enter Python around 3.8, and they have really improved the experience. Even if nothing enforces the annotations, the IDEs can pick them up and show them to you in all the usual places.

[-] zea_64@lemmy.blahaj.zone 1 points 3 days ago

I used them heavily, but I still run into issues of guessing what type library functions return or expect me to pass in. Sometimes there was no answer because the authors I guess wanted to be cool and accept any type that kinda fits, or they return either this or that type based on the arguments and now I have to assert which one it is to the type linter. And then I'd still get runtime errors about failed property accesses deep in library code and have to figure out wtf they wanted me to do.

this post was submitted on 07 Aug 2025
448 points (96.5% liked)

Programmer Humor

25699 readers
3174 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS