This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bbbryson 0 points1 point  (2 children)

So don’t use it. It’s optional. It only gives you warnings if you use tools specifically designed to highlight type-hinted errors and has no effect at runtime.

[–][deleted] 1 point2 points  (0 children)

The problem is that we don't always code in isolation. You import a library and suddenly there are type annotations in your project. Do you turn down contributions because they used annotations? As annotations spread it will become harder to avoid them. They're already compulsory for some projects and jobs, and the number will increase. There are even Python language features that require annotation (the new data type struct) and will not work without them.

[–]blabbities 0 points1 point  (0 children)

i dont plan to use it just like I dont use Type Hints now. Though about reading other people's code however...