We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b41bf46 commit c726fc7Copy full SHA for c726fc7
src/griffe_pydantic/static.py
@@ -58,7 +58,10 @@ def pydantic_validator(func: Function) -> ExprCall | None:
58
A decorator value (Griffe expression).
59
"""
60
for decorator in func.decorators:
61
- if isinstance(decorator.value, ExprCall) and decorator.callable_path in {"pydantic.field_validator", "pydantic.model_validator"}:
+ if isinstance(decorator.value, ExprCall) and decorator.callable_path in {
62
+ "pydantic.field_validator",
63
+ "pydantic.model_validator",
64
+ }:
65
return decorator.value
66
return None
67
0 commit comments