Conditions | 2 |
Total Lines | 5 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """Helpers for reasoning about ordering methods.""" |
||
14 | def can_set_ordering(*, can_set: bool) -> bool: |
||
15 | """Reduce cyclomatic complexity of the ``__init_subclass__`` methods.""" |
||
16 | if not can_set: |
||
17 | raise ValueError("Can't add ordering methods if equality methods are provided.") |
||
18 | return True |
||
19 | |||
28 |