chore: Update some type hints in config. (#5833)

This commit is contained in:
-LAN-
2024-07-02 08:50:02 +08:00
committed by GitHub
parent af308b99a3
commit 32d85fb896
3 changed files with 5 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ class HttpConfig(BaseModel):
def CONSOLE_CORS_ALLOW_ORIGINS(self) -> list[str]:
return self.inner_CONSOLE_CORS_ALLOW_ORIGINS.split(',')
inner_WEB_API_CORS_ALLOW_ORIGINS: Optional[str] = Field(
inner_WEB_API_CORS_ALLOW_ORIGINS: str = Field(
description='',
validation_alias=AliasChoices('WEB_API_CORS_ALLOW_ORIGINS'),
default='*',