ruff
689797a9 - [ty] Type narrowing in comprehensions (#18934)

Commit
220 days ago
[ty] Type narrowing in comprehensions (#18934) ## Summary Add type narrowing inside comprehensions: ```py def _(xs: list[int | None]): [reveal_type(x) for x in xs if x is not None] # revealed: int ``` closes https://github.com/astral-sh/ty/issues/680 ## Test Plan * New Markdown tests * Made sure the example from https://github.com/astral-sh/ty/issues/680 now checks without errors * Made sure that all removed ecosystem diagnostics were actually false positives
Author
Parents
Loading