Skip to content

Bounds: Add __post_init__ to make some validations for lower/upper relationship #11

@llucax

Description

@llucax

What's needed?

The Bounds class can be instantiated with lower=10, upper=0, which doesn't make any sense.

Proposed solution

Raise a ValueError if that happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:collectionsAffects the collections modulescope:breaking-changeBreaking change, users will need to update their codetype:enhancementNew feature or enhancement visitble to users

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions