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

Method from_config

scenedetect/_cli/config.py:60–66  ·  view source on GitHub ↗

Validate and get the user-specified configuration option. Raises: OptionParseFailure: Value from config file did not meet validation constraints.

(config_value: str, default: "ValidatedValue")

Source from the content-addressed store, hash-verified

58 @staticmethod
59 @abstractmethod
60 def from_config(config_value: str, default: "ValidatedValue") -> "ValidatedValue":
61 """Validate and get the user-specified configuration option.
62
63 Raises:
64 OptionParseFailure: Value from config file did not meet validation constraints.
65 """
66 ...
67
68 def __repr__(self) -> str:
69 return str(self.value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected