From 037ebc2b80d2d268fae3505b22e000550860d463 Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Fri, 7 Jun 2024 15:03:12 +0200 Subject: [PATCH] Make `ValidatorFunctionWrapHandler` positional only --- python/pydantic_core/core_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pydantic_core/core_schema.py b/python/pydantic_core/core_schema.py index 2cb875b23..2cc1a6c11 100644 --- a/python/pydantic_core/core_schema.py +++ b/python/pydantic_core/core_schema.py @@ -2062,7 +2062,7 @@ def fn(v: str, info: core_schema.ValidationInfo) -> str: class ValidatorFunctionWrapHandler(Protocol): - def __call__(self, input_value: Any, outer_location: str | int | None = None) -> Any: # pragma: no cover + def __call__(self, input_value: Any, outer_location: str | int | None = None, /) -> Any: # pragma: no cover ...