ruff/crates/ty_python_semantic/resources/primer/good.txt
Shunsuke Shibayama 342b2665db
[ty] basic narrowing on attribute and subscript expressions (#17643)
## 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>
2025-06-17 11:07:46 +02:00

123 lines
1.2 KiB
Text

AutoSplit
Expression
PyGithub
PyWinCtl
SinbadCogs
aiohttp
aiohttp-devtools
aioredis
aiortc
alectryon
alerta
altair
anyio
apprise
async-utils
asynq
attrs
bandersnatch
beartype
bidict
black
bokeh
boostedblob
check-jsonschema
cki-lib
cloud-init
colour
com2ann
comtypes
cwltool
dacite
dd-trace-py
dedupe
discord.py
django-stubs
downforeveryone
dragonchain
dulwich
flake8
flake8-pyi
freqtrade
git-revise
graphql-core
httpx-caching
hydra-zen
ignite
imagehash
isort
itsdangerous
janus
jinja
koda-validate
kopf
kornia
manticore
materialize
meson
mitmproxy
mkdocs
mkosi
mongo-python-driver
more-itertools
mypy
mypy-protobuf
mypy_primer
nionutils
nox
openlibrary
operator
optuna
paasta
pandas-stubs
paroxython
parso
pegen
poetry
porcupine
ppb-vector
prefect
psycopg
pwndbg
pybind11
pycryptodome
pydantic
pyinstrument
pyjwt
pylox
pyp
pyppeteer
pytest
pytest-robotframework
python-chess
python-htmlgen
python-sop
pywin32
rclip
rich
rotki
schema_salad
schemathesis
scikit-learn
scipy
scrapy
sockeye
speedrun.com_global_scoreboard_webapp
sphinx
starlette
static-frame
stone
strawberry
streamlit
sympy
trio
twine
typeshed-stats
urllib3
vision
websockets
werkzeug
xarray-dataclasses
yarl
zipp
zulip