Skip to content

Commit

Permalink
fix: upgrade Pydantic req; more accurate import source in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmmx committed Feb 11, 2024
1 parent ec3d302 commit 8ac53ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions projects/fal/src/fal/toolkit/file/providers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from .fal import FalFileRepository, InMemoryRepository
from .gcp import GoogleStorageRepository
from .r2 import R2Repository

__all__ = [
"FalFileRepository",
"InMemoryRepository",
"GoogleStorageRepository",
"R2Repository",
]
2 changes: 1 addition & 1 deletion projects/fal/tests/stability_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class MathQuery(BaseModel):
class MathResult(BaseModel):
result: int = Field(description="The result of the operation")

@isolated_client("virtualenv", requirements=["pydantic<2"])
@isolated_client("virtualenv", requirements=["pydantic>=2"])
def add(query: MathQuery) -> MathResult:
return MathResult(result=query.x + query.y)

Expand Down
3 changes: 2 additions & 1 deletion projects/fal/tests/toolkit/file_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
from base64 import b64encode

import pytest
from fal.toolkit.file.file import File, GoogleStorageRepository
from fal.toolkit.file.file import File
from fal.toolkit.file.providers import GoogleStorageRepository


def test_binary_content_matches():
Expand Down

0 comments on commit 8ac53ff

Please sign in to comment.