Skip to content

invalid model parameters should either error or keep user arguments #162

@ExpandingMan

Description

@ExpandingMan

I noticed today that if a model constructor fails parameter validation it reverts to the default with a warning.

I find this behavior confusing. Normally invalid constructors lead to an error. Alternatively, I can imagine getting frustrated if an overzealous maintainer improperly restricted a parameter range, in which case the thing to do would be to allow the user-provided argument with an error. Either way, reverting to the default seems like a very strange behavior, thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    priority low / straightforward

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions