[ty] Fix false-positive diagnostics for PEP-604 union annotations on attribute targets on Python 3.9 when from __future__ import annotations is active by AlexWaygood · Pull Request #23915 · astral-sh/ruff (original) (raw)

mypy_primer results

Changes were detected when running on open source projects

pyp (https://github.com/hauntsaninja/pyp)

packaging (https://github.com/pypa/packaging)

pip (https://github.com/pypa/pip)

pyjwt (https://github.com/jpadilla/pyjwt)

dedupe (https://github.com/dedupeio/dedupe)

PyWinCtl (https://github.com/Kalmat/PyWinCtl)

nox (https://github.com/wntrblm/nox)

pydantic (https://github.com/pydantic/pydantic)

PyGithub (https://github.com/PyGithub/PyGithub)

optuna (https://github.com/optuna/optuna)

mkdocs (https://github.com/mkdocs/mkdocs)

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)

setuptools (https://github.com/pypa/setuptools)

altair (https://github.com/vega/altair)

dd-trace-py (https://github.com/DataDog/dd-trace-py)

scikit-build-core (https://github.com/scikit-build/scikit-build-core)