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

use pydantic v2 #1625

Closed
wants to merge 28 commits into from
Closed

use pydantic v2 #1625

wants to merge 28 commits into from

Conversation

technillogue
Copy link
Contributor

No description provided.

Signed-off-by: technillogue <technillogue@gmail.com>
…his makes tests pass and fixes some problems with validation, but also prevents streaming files and causes new problems. also xfail all the responses tests that need to be replaced with respx"

This reverts commit 3fa6a00.

this would cause files to only be uploaded in the sync route

Signed-off-by: technillogue <technillogue@gmail.com>
…ted output to avoid converting urls to File/Path

Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
… upload type checks early for strs

Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
@technillogue technillogue changed the title use pydantic use pydantic v2 Apr 18, 2024
@mattt
Copy link
Member

mattt commented Apr 18, 2024

My understanding is that this will cause incompatibilities with anyone using Pydantic 1, which I reckon is many if not most models.

Any objections to porting this to use the same "try import v2 shim for v1, fallback to actual v1" approach taken by #1622?

@technillogue
Copy link
Contributor Author

yeah that's sensible, this is just to unblock testing

pyproject.toml Outdated Show resolved Hide resolved
Co-authored-by: Mattt <mattt@replicate.com>
Signed-off-by: technillogue <wisepoison@gmail.com>
@technillogue
Copy link
Contributor Author

wait so is there some benefit to doing this over #1622 ?

@technillogue technillogue force-pushed the syl/more-refactor branch 4 times, most recently from 4398d97 to 9ca6a6b Compare May 8, 2024 20:43
@mattt mattt mentioned this pull request May 23, 2024
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