Hacker News new | ask | show | jobs
by cjohnson318 1285 days ago
Maybe a list with ThingObject or None, but my lists are usually homogenous.
1 comments

thats just homogenous Sequence[Optional[T]], though.
Yeah, 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.
And everything is a subtype of Any. The usual 'static typing' of dynlangs.
well list[int|str] is as well