Myrmornis 18 hours ago

Python has union types, and you can type something as a container type with no type parameters.

1
greatgib 15 hours ago

You 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 10 hours ago

Hear, 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.