MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / click_range

Method click_range

scenedetect/_cli/config.py:130–134  ·  view source on GitHub ↗

A `click` parameter type matching this range's bounds and value type.

(self)

Source from the content-addressed store, hash-verified

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":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected