Skip to content

no immediate default_value validation #263

@fwkoch

Description

@fwkoch

Regarding validating default values, I'm curious why this is allowed at all:

screen shot 2016-07-29 at 12 44 45 pm

This seems to go against the emphasis on validating default values in the module description.

There are also some important difference in our design:

  • enthought.traits does not validate default values. We do.

I recognize that this default value is validated eventually if the traitlet is part of a HasTraits class; it just happens on instantiation rather than class definition. Of course, dynamic defaults can only be validated at this point, but it seems like static defaults could be validated sooner.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions