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(pandas): Use Pydantic v2 compatible type #1760

Merged
merged 1 commit into from
May 15, 2024

Conversation

jesse-c
Copy link
Contributor

@jesse-c jesse-c commented May 15, 2024

This is a follow-up to #1752 and supersedes #1759.

It's understood that string type is no longer being treated as a list by Pydantic. bytes should be.

The code generator seems aware of the bytes type [1][2].

[1] https://github.com/koxudaxi/datamodel-code-generator/blob/fcab9a4d555d4b96d64bb277f974bb7507982fb2/datamodel_code_generator/types.py#L536-L569
[2] https://github.com/koxudaxi/datamodel-code-generator/blob/fcab9a4d555d4b96d64bb277f974bb7507982fb2/datamodel_code_generator/types.py#L624-L640

@jesse-c jesse-c self-assigned this May 15, 2024
@jesse-c jesse-c marked this pull request as ready for review May 15, 2024 14:22
@jesse-c jesse-c merged commit b8445f8 into SeldonIO:master May 15, 2024
25 checks passed
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

2 participants