[ty] No union with Unknown for module-global symbols by sharkdp · Pull Request #20664 · astral-sh/ruff (original) (raw)
sharkdp changed the title
[ty] No union with [ty] No union with Unknown for module-global symbols (no promotion)Unknown for module-global symbols
sharkdp added a commit that referenced this pull request
Summary
Reformulation of the public symbol type inference test suite to use class scopes instead of module scopes. This is in preparation for an upcoming change to module-global scopes (#20664).
Test Plan
Updated tests
sharkdp marked this pull request as ready for review
sharkdp deleted the david/no-unknown-union-no-promotion branch
dcreager added a commit that referenced this pull request
- origin/main:
[
flake8-bugbear] Include certain guaranteed-mutable expressions: tuples, generators, and assignment expressions (B006) (#20024) [flake8-comprehensions] Clarify fix safety documentation (C413) (#20640) [ty] improve base conda distinction from child conda (#20675) [ruff] Extend FA102 with listed PEP 585-compatible APIs (#20659) [ruff] Handle argfile expansion errors gracefully (#20691) [flynt] Fix f-string quoting for mixed quote joiners (FLY002) (#20662) [ty] Fix file root matching for/[ruff,ty] Enable tracing'slogfeature [flake8-annotations] Fix return type annotations to handle shadowed builtin symbols (ANN201,ANN202,ANN204,ANN205,ANN206) (#20612) Bump 0.13.3 (#20685) Update benchmarking CI for cargo-codspeed v4 (#20686) [ty] Support single-starred argument for overload call (#20223) [ty]~Tshould never be assignable toT(#20606) [pylint] Clarify fix safety to include left-hand hashability (PLR6201) (#20518) [ty] No union withUnknownfor module-global symbols (#20664) [ty] Reject renaming files to start with slash in Playground (#20666) [ty] Enums: allow multiple aliases to point to the same member (#20669)
This was referenced
Oct 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})