(v)
| 26 | def row_key(row, headers): |
| 27 | """Build a hashable key from scalar identity fields.""" |
| 28 | def _hashable(v): |
| 29 | if isinstance(v, list): |
| 30 | return tuple(sorted(str(x) for x in v)) |
| 31 | return v |
| 32 | |
| 33 | if isinstance(row, dict): |
| 34 | # Use only scalar identity fields for keying (skip list fields like team_uid) |