For a number of trait types the default value for allow_none is True, such as Enum, Dict, List, Instance.
It probably makes sense for Type, but as explicit is often better than implicit, could be interesting to change this before traitlets are separated out.
This would be a divergence with respect to the traits library though. (still I think that given the popularity of IPython, traitlets are much more used).
For a number of trait types the default value for
allow_noneisTrue, such asEnum,Dict,List,Instance.It probably makes sense for
Type, but as explicit is often better than implicit, could be interesting to change this before traitlets are separated out.This would be a divergence with respect to the
traitslibrary though. (still I think that given the popularity of IPython, traitlets are much more used).