Conditions | 3 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """Helpers for reasoning about ordering methods.""" |
||
6 | def ordering_options_are_valid( |
||
7 | *, eq: bool, order: bool # pylint: disable=invalid-name |
||
8 | ) -> None: |
||
9 | """Check constraint: we can't define order if we didn't define equality.""" |
||
10 | if order and not eq: |
||
11 | raise ValueError("eq must be true if order is true") |
||
12 | |||
28 |