From 52562298b79760ebebdf9dff0aa520549dd78faf Mon Sep 17 00:00:00 2001 From: -LAN- Date: Tue, 24 Dec 2024 14:23:26 +0800 Subject: [PATCH] fix: remove unnecessary type ignore comments from computed fields Signed-off-by: -LAN- --- api/configs/feature/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/configs/feature/__init__.py b/api/configs/feature/__init__.py index b43a6567f9f41b..c463c3d47534f0 100644 --- a/api/configs/feature/__init__.py +++ b/api/configs/feature/__init__.py @@ -238,8 +238,7 @@ class HttpConfig(BaseSettings): default="", ) - @computed_field # type: ignore - @property + @computed_field def CONSOLE_CORS_ALLOW_ORIGINS(self) -> list[str]: return self.inner_CONSOLE_CORS_ALLOW_ORIGINS.split(",") @@ -249,8 +248,7 @@ def CONSOLE_CORS_ALLOW_ORIGINS(self) -> list[str]: default="*", ) - @computed_field # type: ignore - @property + @computed_field def WEB_API_CORS_ALLOW_ORIGINS(self) -> list[str]: return self.inner_WEB_API_CORS_ALLOW_ORIGINS.split(",")