Files
ruff/crates
David Peter af988bf866 [red-knot] Detect division-by-zero in unions and intersections (#17157)
## Summary

With this PR, we emit a diagnostic for this case where
previously didn't:
```py
from typing import Literal

def f(m: int, n: Literal[-1, 0, 1]):
    # error: [division-by-zero] "Cannot divide object of type `int` by zero"
    return m / n
```

## Test Plan

New Markdown test
2025-04-02 18:21:27 +02:00
..
2025-02-07 10:59:40 +01:00
2025-02-26 06:12:43 -08:00
2025-03-21 09:17:07 -04:00