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

Class EscapedChar

scenedetect/_cli/config.py:294–307  ·  view source on GitHub ↗

Strings that can contain escape sequences but can be a maximum of 1 character in length.

Source from the content-addressed store, hash-verified

292
293
294class EscapedChar(EscapedString):
295 """Strings that can contain escape sequences but can be a maximum of 1 character in length."""
296
297 def __init__(self, value: str):
298 super().__init__(value, length_limit=1)
299
300 @staticmethod
301 def from_config(config_value: str, default: "EscapedString") -> "EscapedChar":
302 try:
303 return EscapedChar(config_value)
304 except (UnicodeDecodeError, UnicodeEncodeError) as ex:
305 raise OptionParseFailure(
306 "Value must be valid UTF-8 string with escape characters."
307 ) from ex
308
309
310class TimecodeFormat(Enum):

Callers 2

from_configMethod · 0.85
config.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected