fix: Set SliderProxy range params to Any (#290)

* fix: Set SliderProxy range params to Any

When the types are ints, this raises mypy errors when e.g. setting the
range of a QDoubleSlider to float values.

This change aligns with the parameter typing of _SliderProxy.setValue

* Update src/superqt/sliders/_labeled.py

---------

Co-authored-by: Talley Lambert <talley.lambert@gmail.com>
This commit is contained in:
Gabriel Selzer
2025-06-02 15:35:13 -05:00
committed by GitHub
parent 788d0f0325
commit 7193480796

View File

@@ -83,7 +83,7 @@ class _SliderProxy:
def setPageStep(self, step: int) -> None:
self._slider.setPageStep(step)
def setRange(self, min: int, max: int) -> None:
def setRange(self, min: float, max: float) -> None:
self._slider.setRange(min, max)
def tickInterval(self) -> int: