(v: Any, type: type | tuple[type, ...])
| 143 | |
| 144 | |
| 145 | def is_optional_list(v: Any, type: type | tuple[type, ...]) -> bool: |
| 146 | return isinstance(v, _NotSetType) or isinstance(v, list) and all(isinstance(element, type) for element in v) |
| 147 | |
| 148 | |
| 149 | camel_to_snake_case_regexp = re.compile(r"(?<!^)(?=[A-Z])") |
no outgoing calls
no test coverage detected
searching dependent graphs…