(self, value: str, length_limit: int = 0)
| 270 | """Strings that can contain escape sequences, e.g. the literal \n.""" |
| 271 | |
| 272 | def __init__(self, value: str, length_limit: int = 0): |
| 273 | self._value = value.encode("utf-8").decode("unicode_escape") |
| 274 | if length_limit and len(self._value) > length_limit: |
| 275 | raise OptionParseFailure(f"Value must be no longer than {length_limit} characters.") |
| 276 | |
| 277 | @property |
| 278 | def value(self) -> str: |
nothing calls this directly
no test coverage detected