mirror of
https://github.com/pyapp-kit/superqt.git
synced 2025-12-15 18:50:05 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user