mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00

## Summary This PR closes astral-sh/ty#164. This PR introduces a basic type narrowing mechanism for attribute/subscript expressions. Member accesses, int literal subscripts, string literal subscripts are supported (same as mypy and pyright). ## Test Plan New test cases are added to `mdtest/narrow/complex_target.md`. --------- Co-authored-by: David Peter <mail@david-peter.de>
21 lines
894 B
Text
21 lines
894 B
Text
Tanjun # too many iterations
|
|
antidote # hangs / slow (single threaded)
|
|
artigraph # cycle panics (value_type_)
|
|
arviz # too many iterations on versions of arviz newer than https://github.com/arviz-devs/arviz/commit/3205b82bb4d6097c31f7334d7ac51a6de37002d0
|
|
core # cycle panics (value_type_)
|
|
cpython # too many cycle iterations
|
|
hydpy # too many iterations
|
|
ibis # too many iterations
|
|
jax # too many iterations
|
|
packaging # too many iterations
|
|
pandas # slow (9s)
|
|
pandera # stack overflow
|
|
pip # vendors packaging, see above
|
|
pylint # cycle panics (self-recursive type alias)
|
|
pyodide # too many cycle iterations
|
|
setuptools # vendors packaging, see above
|
|
spack # slow, success, but mypy-primer hangs processing the output
|
|
spark # too many iterations
|
|
steam.py # hangs (single threaded)
|
|
tornado # bad use-def map (https://github.com/astral-sh/ty/issues/365)
|
|
xarray # too many iterations
|