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

Improving type casting from list of values to mixed tuples #228

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

plonerma
Copy link

@plonerma plonerma commented May 3, 2023

When using mixed tuples, values are (currently) only cast if the data contains a tuple as well. If the data contains a list, this leads to unexpected behavior (see #227).

This PR fixes this behavior to broaden the usage of the tuple-build_value rule to data types (as long as the expected type is a tuple).

plonerma added 2 commits May 3, 2023 13:20
…ection` (solves failing test case `test_from_dict_casting_list_of_strings_to_tuple_with_mixed_types`)
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.

2 participants