From b8c099e30cf93ea82af9ad7e1d4a22d34ccbcbf3 Mon Sep 17 00:00:00 2001 From: MrMissx Date: Mon, 15 Jul 2024 20:34:40 +0700 Subject: [PATCH] fix: update pydantic import --- anjani/internal_plugins/spam_prediction.py | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/anjani/internal_plugins/spam_prediction.py b/anjani/internal_plugins/spam_prediction.py index e882e6e3d..dcdc8a531 100644 --- a/anjani/internal_plugins/spam_prediction.py +++ b/anjani/internal_plugins/spam_prediction.py @@ -37,7 +37,9 @@ InlineKeyboardMarkup, Message, ) -from pydantic import BaseModel, field_validator +from pydantic import BaseModel +from pydantic.functional_validators import field_validator + from anjani import command, filters, listener, plugin, util from anjani.core.metrics import SpamPredictionStat diff --git a/pyproject.toml b/pyproject.toml index bfb28db40..3ef98f8c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "anjani" -version = "2.14.9" +version = "2.14.11" description = "Telegram group management bot" license = "GPL-3.0-or-later" authors = [