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

Handle list and dict types #12

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

Conversation

danodonovan
Copy link

⚠️ NB This PR also includes the commit from #10 and #11 which should be merged first, we cna then rebase this PR.

In the documentation we read that

str, dict, list, object

are supported types, but defining a list or dict type results in an AssertionError (see #9 )

This PR introduces a fix where the type of the column is checked, and if it's list or dict then cast / convert directly.
(I would have preferred a more generic solution, but these were getting more complicated).

Two new tests have been added to cover this case.

@danodonovan danodonovan changed the title Handle list types Handle list and dict types Nov 10, 2023
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.

None yet

1 participant