Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeEdit.__init__ should accept a range object, and SliceEdit a slice #484

Open
tlambert03 opened this issue Oct 29, 2022 · 0 comments
Open

Comments

@tlambert03
Copy link
Member

The init of RangeEdit is

    def __init__(
        self,
        start: int = 0,
        stop: int = 10,
        step: int = 1,
        min: int | tuple[int, int, int] | None = None,
        max: int | tuple[int, int, int] | None = None,
        **kwargs,
    ):

but it should accept an instance of range, just as the value setter does.

Same thing for SliceEdit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant