(config_value: str, default: "EscapedString")
| 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 | |
| 310 | class TimecodeFormat(Enum): |
nothing calls this directly
no test coverage detected