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

Method __init__

scenedetect/_cli/config.py:102–113  ·  view source on GitHub ↗
(
        self,
        value: int | float,
        min_val: int | float,
        max_val: int | float,
    )

Source from the content-addressed store, hash-verified

100 """Validator for int/float ranges. `min_val` and `max_val` are inclusive."""
101
102 def __init__(
103 self,
104 value: int | float,
105 min_val: int | float,
106 max_val: int | float,
107 ):
108 if value < min_val or value > max_val:
109 # min and max are inclusive.
110 raise ValueError()
111 self._value = value
112 self._min_val = min_val
113 self._max_val = max_val
114
115 @property
116 def value(self) -> int | float:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected