Skip to content

Commit 865d491

Browse files
authored
Fix import of pydantic (#196)
Resolves #195 Signed-off-by: Mattt Zmuda <[email protected]>
1 parent 2a5a6af commit 865d491

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

replicate/deployment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
try:
1313
from pydantic import v1 as pydantic # type: ignore
1414
except ImportError:
15-
pass # type: ignore
15+
import pydantic # type: ignore
1616

1717

1818
if TYPE_CHECKING:

replicate/model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
try:
1212
from pydantic import v1 as pydantic # type: ignore
1313
except ImportError:
14-
pass # type: ignore
14+
import pydantic # type: ignore
1515

1616

1717
if TYPE_CHECKING:

replicate/training.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
try:
2525
from pydantic import v1 as pydantic # type: ignore
2626
except ImportError:
27-
pass # type: ignore
27+
import pydantic # type: ignore
2828

2929
if TYPE_CHECKING:
3030
from replicate.client import Client

0 commit comments

Comments
 (0)