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

Improve create_pydantic_model for multidimensional arrays #938

Closed
dantownsend opened this issue Mar 4, 2024 · 0 comments · Fixed by #939
Closed

Improve create_pydantic_model for multidimensional arrays #938

dantownsend opened this issue Mar 4, 2024 · 0 comments · Fixed by #939
Labels
enhancement New feature or request

Comments

@dantownsend
Copy link
Member

If we have a table like this:

class MyTable(Table):
    my_column = Array(Array(Varchar()))

We want the Pydantic type to be:

list[list[str]]

Currently it doesn't take multidimensional arrays fully into account - and will output something like list[list].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant