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

Commit

Permalink
Support pydantic v2
Browse files Browse the repository at this point in the history
  • Loading branch information
knakazawa99 committed Nov 14, 2023
1 parent 68b02b8 commit 3b501e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion prefect_aws/glue_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@

from prefect.infrastructure.base import Infrastructure, InfrastructureResult
from prefect.utilities.asyncutils import run_sync_in_worker_thread, sync_compatible
from pydantic import Field
from pydantic import VERSION as PYDANTIC_VERSION

if PYDANTIC_VERSION.startswith("2."):
from pydantic.v1 import Field
else:
from pydantic import Field

from typing_extensions import Literal

from prefect_aws import AwsCredentials
Expand Down

0 comments on commit 3b501e2

Please sign in to comment.