| Conditions | 2 |
| Total Lines | 5 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Helpers for reasoning about ordering methods.""" |
||
| 21 | def raise_for_collision(collision: typing.Union[bool, None, str], name: str) -> None: |
||
| 22 | """Create an informational message about ordering method collisions.""" |
||
| 23 | if collision: |
||
| 24 | raise TypeError( |
||
| 25 | f"Cannot overwrite attribute {collision} in class " |
||
| 26 | f"{name}. Consider using functools.total_ordering" |
||
| 28 |