Skip to content

Bounds: Make Comparable require only __lt__ #15

@llucax

Description

@llucax

To evaluate if a value is within bounds, we only need to the underlying type to support __lt__. This is also what Python built-ins do (list.sort and sorted), so it will be more intuitive to users.

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