From 6e35cced3f33cc0aedba261209b9780eb06c8e6a Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 21 Nov 2023 22:13:20 +0000 Subject: [PATCH] Correct deprecation message for general_after_validator_function --- 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 c097d740e..daed22d48 100644 --- a/python/pydantic_core/core_schema.py +++ b/python/pydantic_core/core_schema.py @@ -3862,7 +3862,7 @@ def field_after_validator_function(function: WithInfoValidatorFunction, field_na @deprecated('`general_after_validator_function` is deprecated, use `with_info_after_validator_function` instead.') def general_after_validator_function(*args, **kwargs): warnings.warn( - '`with_info_after_validator_function` is deprecated, use `with_info_after_validator_function` instead.', + '`general_after_validator_function` is deprecated, use `with_info_after_validator_function` instead.', DeprecationWarning, ) return with_info_after_validator_function(*args, **kwargs)