A `click` parameter type matching this range's bounds and value type.
(self)
| 128 | |
| 129 | @property |
| 130 | def click_range(self) -> "click.IntRange | click.FloatRange": |
| 131 | """A `click` parameter type matching this range's bounds and value type.""" |
| 132 | if isinstance(self._value, int): |
| 133 | return click.IntRange(int(self._min_val), int(self._max_val)) |
| 134 | return click.FloatRange(float(self._min_val), float(self._max_val)) |
| 135 | |
| 136 | @staticmethod |
| 137 | def from_config(config_value: str, default: "RangeValue") -> "RangeValue": |
nothing calls this directly
no outgoing calls
no test coverage detected