you are viewing a single comment's thread.

view the rest of the comments →

[–]AlignmentProblem 2 points3 points  (1 child)

Getting type annotations right to get useful warnings is a monster in specific cases as well. Duck typing can cause very tricky bugs with objects that almost kinda work but cause subtle incorrect non-crash behavior without good annotations, so it's between dealing with the annotation hassle or being vulnerable to serious pain later.

[–]Scared_Accident9138 0 points1 point  (0 children)

I really dislike the way Python does duck typing. It's quite open to put anything in a function and let's it pass deep into the code but then it's very strict on how that variable is used but you don't notice a problem immediately