Skip to content

[ty] Fix union *args binding for optional positional parameters#23124

Merged
charliermarsh merged 9 commits intomainfrom
charlie/iter
Mar 4, 2026
Merged

[ty] Fix union *args binding for optional positional parameters#23124
charliermarsh merged 9 commits intomainfrom
charlie/iter

Conversation

@charliermarsh
Copy link
Member

Summary

Closes astral-sh/ty#2734.

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 6, 2026

Typing conformance results

No changes detected ✅

@AlexWaygood AlexWaygood added the ty Multi-file analysis & type inference label Feb 6, 2026
@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 6, 2026

mypy_primer results

Changes were detected when running on open source projects
sympy (https://github.com/sympy/sympy)
- sympy/algebras/tests/test_quaternion.py:96:70: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `bool`, found `Unknown | int | Half`
- Found 16321 diagnostics
+ Found 16320 diagnostics

@charliermarsh charliermarsh force-pushed the charlie/iter branch 6 times, most recently from 3723f86 to f368018 Compare February 9, 2026 02:07
@charliermarsh charliermarsh marked this pull request as ready for review February 9, 2026 02:10
@charliermarsh charliermarsh added the bug Something isn't working label Feb 9, 2026
@sharkdp sharkdp removed their request for review February 9, 2026 09:53
@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 10, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-await 40 0 0
invalid-argument-type 0 1 0
invalid-return-type 1 0 0
Total 41 1 0

Full report with detailed diff (timing results)

Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think there are some thing to look at here.

@carljm carljm self-assigned this Feb 14, 2026
@charliermarsh charliermarsh marked this pull request as draft February 15, 2026 19:40
@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 15, 2026

Memory usage report

Memory usage unchanged ✅

@charliermarsh charliermarsh marked this pull request as ready for review February 15, 2026 20:53
@carljm carljm self-requested a review February 16, 2026 07:38
Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks much better! Just a couple comments on test coverage. It's not clear to me if the new bounded variable is actually needed or not -- test coverage would help clarify.

@charliermarsh charliermarsh enabled auto-merge (squash) March 4, 2026 02:02
@charliermarsh charliermarsh merged commit 7eb47ac into main Mar 4, 2026
50 checks passed
@charliermarsh charliermarsh deleted the charlie/iter branch March 4, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ecosystem-analyzer ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

expand unions of fixed-length tuples in unpacking *args

3 participants