From 7e24181c37e9b47bc9aed31d7cdbe167af16aebd Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 7 Jan 2025 14:44:44 +0800 Subject: [PATCH] fix noqa --- app/core/config.py | 2 +- app/schemas/event.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/config.py b/app/core/config.py index 0fc9850d..babe3408 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -351,7 +351,7 @@ class Settings(BaseSettings, ConfigModel, LogConfigModel): return default, True @validator('*', pre=True, always=True) - def generic_type_validator(cls, value: Any, field): + def generic_type_validator(cls, value: Any, field): # noqa """ 通用校验器,尝试将配置值转换为期望的类型 """ diff --git a/app/schemas/event.py b/app/schemas/event.py index 060a98dc..ea57c78e 100644 --- a/app/schemas/event.py +++ b/app/schemas/event.py @@ -50,7 +50,7 @@ class AuthCredentials(ChainEventData): service: Optional[str] = Field(default=None, description="服务名称") @root_validator(pre=True) - def check_fields_based_on_grant_type(cls, values): + def check_fields_based_on_grant_type(cls, values): # noqa grant_type = values.get("grant_type") if not grant_type: values["grant_type"] = "password"