Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getargs argument passing #18350

Merged
merged 5 commits into from
Dec 28, 2024
Merged

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Dec 28, 2024

Fixes mypyc/mypyc#1078

Introduced in #17930

See the first commit to see the bug (wrong condition)

@hauntsaninja hauntsaninja requested a review from cdce8p December 28, 2024 09:42
@cdce8p cdce8p added bug mypy got something wrong topic-mypyc mypyc bugs labels Dec 28, 2024
Copy link
Collaborator

@cdce8p cdce8p left a comment

Choose a reason for hiding this comment

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

Thanks for bisecting the issue @hauntsaninja! Seems I missed that in #17930. Left one small comment, LGTM otherwise.

mypyc/lib-rt/getargs.c Outdated Show resolved Hide resolved
hauntsaninja and others added 2 commits December 28, 2024 03:26
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
@hauntsaninja
Copy link
Collaborator Author

hauntsaninja commented Dec 28, 2024

Oh good suggestions, thanks for the review! I also looked over the CPython getargs code and made some cosmetic changes to make this look more like that

@hauntsaninja hauntsaninja merged commit d79d89e into python:master Dec 28, 2024
12 checks passed
@hauntsaninja hauntsaninja deleted the mypyc-fix branch December 28, 2024 22:48
svalentin pushed a commit that referenced this pull request Dec 30, 2024
Fixes mypyc/mypyc#1078

Introduced in #17930

See the first commit to see the bug (wrong condition)

---------

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
hauntsaninja added a commit to hauntsaninja/mypy that referenced this pull request Dec 31, 2024
Improves test added in python#18350 to confirm the args are actually parsed
correctly
hauntsaninja added a commit that referenced this pull request Dec 31, 2024
Improves test added in #18350 to confirm the args are actually parsed
correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong topic-mypyc mypyc bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.14.0 - regression bug: confusion of **kwargs with other parameters
2 participants