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
adamchainz authored Nov 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 3840e00

Please sign in to comment.