Skip to content

Fixed *args and **kwargs handling in the functools overlay#1934

Merged
copybara-service[bot] merged 1 commit into
mainfrom
cl/821665368
Oct 21, 2025
Merged

Fixed *args and **kwargs handling in the functools overlay#1934
copybara-service[bot] merged 1 commit into
mainfrom
cl/821665368

Conversation

@copybara-service
Copy link
Copy Markdown

Fixed *args and **kwargs handling in the functools overlay

pytype is sometimes able to convert args/kwargs to positional/keyword arguments.
The functools overlay did not account for that prior to this change, and ended
up passing the same arguments twice!

See added test case for a minimal repro.

@copybara-service copybara-service Bot force-pushed the cl/821665368 branch 2 times, most recently from 73a4d38 to b4a8a10 Compare October 21, 2025 21:42
pytype is sometimes able to convert args/kwargs to positional/keyword arguments.
The functools overlay did not account for that prior to this change, and ended
up passing the same arguments twice!

See added test case for a minimal repro.

PiperOrigin-RevId: 822295276
@copybara-service copybara-service Bot merged commit 68ece50 into main Oct 21, 2025
@copybara-service copybara-service Bot deleted the cl/821665368 branch October 21, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant