mirror of https://github.com/astral-sh/ruff
Add equality narrowing for enums, if they don't override `__eq__` or `__ne__` in an unsafe way. Follow-up to PR https://github.com/astral-sh/ruff/pull/20164 Fixes https://github.com/astral-sh/ty/issues/939 |
||
|---|---|---|
| .. | ||
| boolean.md | ||
| elif_else.md | ||
| eq.md | ||
| in.md | ||
| is.md | ||
| is_not.md | ||
| nested.md | ||
| not.md | ||