Skip to content

Traitlets: allow_none default value for trait types #7670

@SylvainCorlay

Description

@SylvainCorlay

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions