ruff
664686bd - [ty] Exclude parameterized tuple types from narrowing when disjoint from comparison values (#22129)

Commit
55 days ago
[ty] Exclude parameterized tuple types from narrowing when disjoint from comparison values (#22129) ## Summary IIUC, tuples with a known structure (`tuple_spec`) use the standard tuple `__eq__` which only returns `True` for other tuples, so they can be safely excluded when disjoint from string literals or other non-tuple types. Closes https://github.com/astral-sh/ty/issues/2140.
Author
Parents
Loading