diff options
author | 2024-01-08 01:19:22 +0000 | |
---|---|---|
committer | 2024-01-08 01:19:22 +0000 | |
commit | 3f499d3ddca915d2c8e7aed23bef175f37640cf9 (patch) | |
tree | 60ff75d021d6a6d25c0186b41cdede963da6be11 | |
parent | Move modlog method to util (#2877) (diff) |
Fix pydantic warning in test due to deprecated function (#2872)
-rw-r--r-- | bot/exts/filtering/_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/filtering/_utils.py b/bot/exts/filtering/_utils.py index 5fe3bd3c9..a12d09875 100644 --- a/bot/exts/filtering/_utils.py +++ b/bot/exts/filtering/_utils.py @@ -266,7 +266,7 @@ class CustomIOField: _handler: Callable[[Any], core_schema.CoreSchema], ) -> core_schema.CoreSchema: """Boilerplate for Pydantic.""" - return core_schema.general_plain_validator_function(cls.validate) + return core_schema.with_info_plain_validator_function(cls.validate) @classmethod def validate(cls, v: Any, _info: core_schema.ValidationInfo) -> Self: |