From c726fc775705b1981437316d986002d836950804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 3 Dec 2024 16:51:46 +0100 Subject: [PATCH] style: Format --- src/griffe_pydantic/static.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/griffe_pydantic/static.py b/src/griffe_pydantic/static.py index aa98127..51ed25e 100644 --- a/src/griffe_pydantic/static.py +++ b/src/griffe_pydantic/static.py @@ -58,7 +58,10 @@ def pydantic_validator(func: Function) -> ExprCall | None: A decorator value (Griffe expression). """ for decorator in func.decorators: - 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 { + "pydantic.field_validator", + "pydantic.model_validator", + }: return decorator.value return None