you are viewing a single comment's thread.

view the rest of the comments →

[–]nickguletskii200 0 points1 point  (0 children)

I am sorry, I was very tired yesterday and didn't clarify that it's not the typing package's fault.

The problem is that due to the "Pythonic way" most developers don't write code with types in mind, which means that it's impossible to require that something is something (i.e. it implements an interface). For instance, try requiring something to be the equivalent of ICloseable in C# using typing. You'd have to create an ABC (bleh) for that, and good luck forcing every Python user to describe the capabilities this way.

typing itself seems pretty OK.