Open
Description
It is common to have Union
traits of the form Union(None, <something>)
. As a convenience to developers, and following a similar convention in Python's typing
module, we should consider having Optional(<something>)
as an alternative way of writing Union(None, <something>)
.
An alternative would be to make allow_none
metadata universally accepted across TraitType
instances.