ruff/crates/ty_python_semantic/resources/mdtest/narrow/conditionals
Renkai Ge 61f906d8e7
[ty] equality narrowing on enums that don't override `__eq__` or `__ne__` (#20285)
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
2025-09-08 16:56:28 -07:00
..
boolean.md [ty] Reachability constraints (#18621) 2025-06-17 09:24:28 +02:00
elif_else.md [ty] Improve disjointness inference for `NominalInstanceType`s and `SubclassOfType`s (#18864) 2025-06-24 20:27:37 +00:00
eq.md [ty] Expansion of enums into unions of literals (#19382) 2025-07-21 19:37:55 +02:00
in.md [ty] equality narrowing on enums that don't override `__eq__` or `__ne__` (#20285) 2025-09-08 16:56:28 -07:00
is.md [ty] Expansion of enums into unions of literals (#19382) 2025-07-21 19:37:55 +02:00
is_not.md [ty] Expansion of enums into unions of literals (#19382) 2025-07-21 19:37:55 +02:00
nested.md [ty] more precise lazy scope place lookup (#19932) 2025-09-08 21:08:35 +00:00
not.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00