From b347e239aea81f672a6ae82f12c225e633b26012 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:44:07 +0000 Subject: [PATCH] :rotating_light: auto fix by pre-commit hooks --- nonebot/adapters/telegram/config.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nonebot/adapters/telegram/config.py b/nonebot/adapters/telegram/config.py index 42ff4f0..55d0517 100644 --- a/nonebot/adapters/telegram/config.py +++ b/nonebot/adapters/telegram/config.py @@ -21,10 +21,11 @@ class BotConfig(BaseModel): if PYDANTIC_V2: model_config: ConfigDict = ConfigDict( - extra = "ignore", - populate_by_name = True, + extra="ignore", + populate_by_name=True, ) else: + class Config: extra = "ignore" allow_population_by_field_name = True @@ -47,10 +48,11 @@ class AdapterConfig(BaseModel): if PYDANTIC_V2: model_config: ConfigDict = ConfigDict( - extra = "ignore", - populate_by_name = True, + extra="ignore", + populate_by_name=True, ) else: + class Config: extra = "ignore" allow_population_by_field_name = True