Skip to content

Fix getargs argument passing - #18350

Merged
hauntsaninja merged 5 commits into
python:masterfrom
hauntsaninja:mypyc-fix
Dec 28, 2024
Merged

Fix getargs argument passing#18350
hauntsaninja merged 5 commits into
python:masterfrom
hauntsaninja:mypyc-fix

Conversation

@hauntsaninja

@hauntsaninjahauntsaninja commented Dec 28, 2024

Copy link
Copy Markdown
Collaborator

Fixesmypyc/mypyc#1078

Introduced in #17930

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

@cdce8pcdce8p added bug mypy got something wrong topic-mypyc mypyc bugs labels Dec 28, 2024

@cdce8pcdce8p left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment threadmypyc/lib-rt/getargs.c Outdated
Comment threadmypyc/test-data/run-classes.test
hauntsaninjaand others added 2 commits December 28, 2024 03:26
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
@hauntsaninja

hauntsaninja commented Dec 28, 2024

Copy link
Copy Markdown
CollaboratorAuthor

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

Comment threadmypyc/test-data/run-classes.test
@hauntsaninja
hauntsaninja merged commit d79d89e into python:masterDec 28, 2024
@hauntsaninja
hauntsaninja deleted the mypyc-fix branch December 28, 2024 22:48
svalentin pushed a commit that referenced this pull request Dec 30, 2024
Fixesmypyc/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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugmypy got something wrongtopic-mypycmypyc 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

@hauntsaninja@cdce8p