Skip to content

Commit

Permalink
fix: type-error on model_validator in wrap mode (#7496)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmmmwh committed Sep 19, 2023
1 parent 22367fa commit f468466
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pydantic/functional_validators.py
Expand Up @@ -432,7 +432,9 @@ def __call__( # noqa: D102
def model_validator(
*,
mode: Literal['wrap'],
) -> Callable[[_AnyModelWrapValidator], _decorators.PydanticDescriptorProxy[_decorators.ModelValidatorDecoratorInfo]]:
) -> Callable[
[_AnyModelWrapValidator[_ModelType]], _decorators.PydanticDescriptorProxy[_decorators.ModelValidatorDecoratorInfo]
]:
...


Expand Down

0 comments on commit f468466

Please sign in to comment.