(
config_value: str, default: "EscapedString", length_limit: int = 0
)
| 281 | |
| 282 | @staticmethod |
| 283 | def from_config( |
| 284 | config_value: str, default: "EscapedString", length_limit: int = 0 |
| 285 | ) -> "EscapedString": |
| 286 | try: |
| 287 | return EscapedString(config_value, length_limit) |
| 288 | except (UnicodeDecodeError, UnicodeEncodeError) as ex: |
| 289 | raise OptionParseFailure( |
| 290 | "Value must be valid UTF-8 string with escape characters." |
| 291 | ) from ex |
| 292 | |
| 293 | |
| 294 | class EscapedChar(EscapedString): |
nothing calls this directly
no test coverage detected