Validates that 'value' is an instance of `basestring` or `None`.
(option: str, value: Any)
| 254 | |
| 255 | |
| 256 | def validate_string_or_none(option: str, value: Any) -> Optional[str]: |
| 257 | """Validates that 'value' is an instance of `basestring` or `None`.""" |
| 258 | if value is None: |
| 259 | return value |
| 260 | return validate_string(option, value) |
| 261 | |
| 262 | |
| 263 | def validate_non_negative_int_or_basestring(option: Any, value: Any) -> Union[int, str]: |
nothing calls this directly
no test coverage detected