Skip to content

FIX: flatten args passed to Callable[…].copy_with#320

Merged
j-ittner merged 1 commit into2.0.xfrom
fix/resolve_type_variables_for_callables
Mar 10, 2022
Merged

FIX: flatten args passed to Callable[…].copy_with#320
j-ittner merged 1 commit into2.0.xfrom
fix/resolve_type_variables_for_callables

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