Re:Python’s “type hints” are a bit of a disappointment to me
by heavyset_go on Friday April 22, 2022 @03:52AM
(#31119279)
That's the way it works in Ruby with RBS, and it will work the same way in JavaScript should Microsoft's proposal for type hints make it into ECMAScript[1].
[1] https://devblogs.microsoft.com/typescript/a-proposal-for-typ...
But in Python, it's not (and documented in a PEP as not), and it causes massive confusion.