2 ms·
Python has union types, and you can type something as a container type with no type parameters.
by Myrmornis 2y ago
Python has union types, and you can type something as a container type with no type parameters.
- greatgib 2y agoYou can but it defeats the purpose of typing. Makes a little bit more complicated to code and more verbose for almost no benefit. That is my point.
- toxik 2y agoHear, hear. I often spend five times as long peddling about with the type annotations. Most of the “bugs” I find with the type checker are type annotation bugs, not actual software bugs. What type annotations do however deliver is useful completion via LSP.