typing
typing copied to clipboard
Specify that `type[]` distributes over unions
I think this much can be inferred, since the specs already said that:
-
type[A | B]is supported, and -
Bthe class is a valid value fortype[A | B]
Since this is a substantive change to the spec, it should go through formal TC review. Please follow the process documented here.
Backlink to discussion: Specs clarification: type[A | B] is equivalent/the same as type[A] | type[B].