Skip to content

Array properties create a new view of the array on validation #272

@fwkoch

Description

@fwkoch

When validating an Array, a new view is always created - see here:

value = self.wrapper(value)

This results in some strange behavior, especially with using Arrays as DynamicProperties:
image

I propose adding a coerce key-word argument similar to container properties:

* **coerce** - If False, input must be a tuple. If True, container
types are coerced to a tuple and other non-container values become a
length-1 tuple. Default value is False.
Then if coerce=False we would skip the new view creation step.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions