Remix.run Logo
Myrmornis 9 hours ago

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

greatgib 6 hours ago | parent [-]

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 an hour ago | parent [-]

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.