8000 Handle constraints being applied to schemas that don't accept it by adriangb · Pull Request #6951 · pydantic/pydantic · GitHub
[go: up one dir, main page]

Skip to content
Prev Previous commit
Next Next commit
Fix predicate error
  • Loading branch information
adriangb committed Aug 9, 2023
commit a096c1490a948fbe32e7ed05495b3c27f6f186 AAAA ba
2 changes: 1 addition & 1 deletion pydantic/_internal/_known_annotated_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def val_func(v: Any) -> Any:
if not annotation.func(v):
raise PydanticCustomError(
'predicate_failed',
f'Predicate {predicate_name} failed', # type: ignore
f'Predicate {predicate_name}failed', # type: ignore
)
return v

Expand Down
0