aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2024-01-08 01:19:22 +0000
committerGravatar GitHub <[email protected]>2024-01-08 01:19:22 +0000
commit3f499d3ddca915d2c8e7aed23bef175f37640cf9 (patch)
tree60ff75d021d6a6d25c0186b41cdede963da6be11
parentMove modlog method to util (#2877) (diff)
Fix pydantic warning in test due to deprecated function (#2872)
-rw-r--r--bot/exts/filtering/_utils.py2
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: