(x:Sequence[T])
| 87 | assert x is not None |
| 88 | return x |
| 89 | def get_single_element(x:Sequence[T]) -> T: |
| 90 | assert len(x) == 1, f"{x} must only have 1 element" |
| 91 | return x[0] |
| 92 | def get_child(obj, key): |
| 93 | for k in key.split('.'): |
| 94 | if k.isnumeric(): obj = obj[int(k)] |
no outgoing calls
searching dependent graphs…