Skip to content

Commit

Permalink
fix: remove unnecessary type ignore comments from computed fields
Browse files Browse the repository at this point in the history
Signed-off-by: -LAN- <[email protected]>
  • Loading branch information
laipz8200 committed Dec 24, 2024
1 parent ba1619b commit 5256229
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/configs/feature/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")

Expand All @@ -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(",")

Expand Down

0 comments on commit 5256229

Please sign in to comment.