mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
apply pyupgrade
This commit is contained in:
parent
496770a0fa
commit
36e57e1bc7
@ -40,7 +40,7 @@ class Settings(BaseSettings):
|
|||||||
jwt_access_toke_expire_minutes: int = os.getenv("ACCESS_TOKEN_EXPIRE_MINUTES", 1)
|
jwt_access_toke_expire_minutes: int = os.getenv("ACCESS_TOKEN_EXPIRE_MINUTES", 1)
|
||||||
|
|
||||||
|
|
||||||
@lru_cache()
|
@lru_cache
|
||||||
def get_settings():
|
def get_settings():
|
||||||
logger.info("Loading config settings from the environment...")
|
logger.info("Loading config settings from the environment...")
|
||||||
return Settings()
|
return Settings()
|
||||||
|
@ -7,7 +7,7 @@ from rich.logging import RichHandler
|
|||||||
console = Console(color_system="256", width=200, style="blue")
|
console = Console(color_system="256", width=200, style="blue")
|
||||||
|
|
||||||
|
|
||||||
@lru_cache()
|
@lru_cache
|
||||||
def get_logger(module_name):
|
def get_logger(module_name):
|
||||||
logger = logging.getLogger(module_name)
|
logger = logging.getLogger(module_name)
|
||||||
handler = RichHandler(rich_tracebacks=True, console=console, tracebacks_show_locals=True)
|
handler = RichHandler(rich_tracebacks=True, console=console, tracebacks_show_locals=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user