2 ms·
Maybe a list with ThingObject or None, but my lists are usually homogenous.
by cjohnson318 4y ago
Maybe a list with ThingObject or None, but my lists are usually homogenous.
- mrfox321 4y agothats just homogenous Sequence[Optional[T]], though.
- bombolo 4y agowell list[int|str] is as well
- cjohnson318 4y agoYeah, that's a better way of putting it :) 90% of the time, I'm something like Sequence[T], but I'm sure I've used Sequence[Optional[T]] a couple of times. I mean, I could drive donuts in the Piggly Wiggly parking lot at 3a, I just don't, and the same for heterogenous lists.
- agumonkey 4y agoAnd everything is a subtype of Any. The usual 'static typing' of dynlangs.