fix(configs): Update pydantic settings in config files (#6023)

This commit is contained in:
-LAN- 2024-07-07 12:18:15 +08:00 • committed by GitHub
commit c436454cd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 115 additions and 93 deletions

View file

@ -1,9 +1,10 @@
from typing import Optional
from pydantic import BaseModel, Field, NonNegativeInt, PositiveInt
from pydantic import Field, NonNegativeInt, PositiveInt
from pydantic_settings import BaseSettings
class RedisConfig(BaseModel):
class RedisConfig(BaseSettings):
"""
Redis configs
"""