Return the first list from a set of possible schema locations.
(*values)
| 113 | |
| 114 | |
| 115 | def first_list(*values) -> list: |
| 116 | """Return the first list from a set of possible schema locations.""" |
| 117 | for value in values: |
| 118 | if isinstance(value, list): |
| 119 | return value |
| 120 | return [] |
| 121 | |
| 122 | |
| 123 | def to_float(value, default: float = 0.0) -> float: |