Normalize extra values.
(results: Any)
| 51 | |
| 52 | |
| 53 | def _normalize_extra_values(results: Any) -> Any: |
| 54 | """ |
| 55 | Normalize extra values. |
| 56 | """ |
| 57 | if isinstance(results[0], tuple): |
| 58 | lhs, op, rhs = results[0] |
| 59 | if isinstance(lhs, Variable) and lhs.value == "extra": |
| 60 | normalized_extra = canonicalize_name(rhs.value) |
| 61 | rhs = Value(normalized_extra) |
| 62 | elif isinstance(rhs, Variable) and rhs.value == "extra": |
| 63 | normalized_extra = canonicalize_name(lhs.value) |
| 64 | lhs = Value(normalized_extra) |
| 65 | results[0] = lhs, op, rhs |
| 66 | return results |
| 67 | |
| 68 | |
| 69 | def _format_marker( |
no test coverage detected