Skip to content

Commit

Permalink
Correct deprecation message for general_after_validator_function (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Nov 21, 2023
1 parent a7739ec commit 3840e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pydantic_core/core_schema.py
Expand Up @@ -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)
Expand Down

0 comments on commit 3840e00

Please sign in to comment.