Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Conditional imports to support operating with pydantic>2 installed #98

Closed
wants to merge 1 commit into from

Conversation

chrisguidry
Copy link
Contributor

Following the compatibility work we've done in prefect, we also want to apply the
same compatibility changes to all Prefect-maintained collections. We're following the
convention that Prefect will always use pydantic<2 idioms, leaning on the
pydantic.v1 module of pydantic>2 to aid us in this. With these changes, we can
operate normally regardless of the installed version.

Until prefect fully deprecates pydantic versions below 2.0, we'll continue to
maintain that constraint of using only v1 idioms.

This is part of a series of identical PRs for all of our maintained collections.

@chrisguidry chrisguidry requested a review from a team as a code owner October 4, 2023 18:15
@desertaxle
Copy link
Member

Closing because I believe this PR has be superseded by #100

@desertaxle desertaxle closed this Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants