Skip to content

Commit

Permalink
fix: disable FailFast usage (#231)
Browse files Browse the repository at this point in the history
fix: disable `FailFast` usage for now

`FailFast` raises an exception in cases where it can't be applied to a schema. Disabling this until the behavior can be better understood.
  • Loading branch information
cofin authored Jul 12, 2024
1 parent 4b03579 commit 6856b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advanced_alchemy/service/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def validate_python(self, data: Any, *args: Any, **kwargs: Any) -> T: # pragma:
# this is from pydantic 2.8. We should check for it before using it.
from pydantic import FailFast # pyright: ignore[reportAssignmentType]

PYDANTIC_USE_FAILFAST: Final[bool] = True
PYDANTIC_USE_FAILFAST: Final[bool] = False
except ImportError:

class FailFast: # type: ignore[no-redef] # pragma: nocover
Expand Down

0 comments on commit 6856b72

Please sign in to comment.