(
value: t.Any,
)
| 532 | |
| 533 | |
| 534 | def is_list_of_tuples( |
| 535 | value: t.Any, |
| 536 | ) -> t.Tuple[bool, t.Optional[t.Sequence[t.Tuple[str, ScalarVariableValue]]]]: |
| 537 | if ( |
| 538 | not value |
| 539 | or not isinstance(value, (list, tuple)) |
| 540 | or not all(isinstance(t, tuple) and len(t) == 2 for t in value) |
| 541 | ): |
| 542 | return False, None |
| 543 | |
| 544 | return True, value |
| 545 | |
| 546 | |
| 547 | def list_test(value: t.Any) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…