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: flatten args passed to Callable[…].copy_with #320

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

j-ittner
Copy link
Member

This PR fixes an edge case for constructing copies of parameterised instances of generic type Callable:
Callable.copy_with() expects a flat tuple (arg_1, arg_2, ..., arg_n, return) instead of ([arg_1, arg_2, ..., arg_n], return), so we need to flatten the list of arguments prior to calling copy_with.

@j-ittner j-ittner added the bug Something isn't working label Mar 10, 2022
@j-ittner j-ittner added this to the 2.0.0 milestone Mar 10, 2022
@j-ittner j-ittner self-assigned this Mar 10, 2022
@j-ittner j-ittner merged commit 375f8c2 into 2.0.x Mar 10, 2022
@j-ittner j-ittner deleted the fix/resolve_type_variables_for_callables branch March 10, 2022 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants