From c9b4b7c509b148c06ddb77ff9c7056261f9ed727 Mon Sep 17 00:00:00 2001 From: kingbri Date: Fri, 8 Mar 2024 01:00:04 -0500 Subject: [PATCH] Tree: Format Signed-off-by: kingbri --- OAI/types/sampler_overrides.py | 2 +- common/logger.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/OAI/types/sampler_overrides.py b/OAI/types/sampler_overrides.py index c4b75d82..d0f9617b 100644 --- a/OAI/types/sampler_overrides.py +++ b/OAI/types/sampler_overrides.py @@ -12,7 +12,7 @@ class SamplerOverrideSwitchRequest(BaseModel): overrides: Optional[dict] = Field( default=None, description=( - "Sampling override parent takes in individual keys and overrides." + "Sampling override parent takes in individual keys and overrides. " + "Ignored if preset is provided." ), examples=[ diff --git a/common/logger.py b/common/logger.py index dd2ec9f1..f5961efe 100644 --- a/common/logger.py +++ b/common/logger.py @@ -58,12 +58,7 @@ def _log_formatter(record: dict) -> str: fmt = "" if len(lines) > 1: - fmt = "\n".join( - [ - f"{colored_level}{separator}{line}" - for line in lines - ] - ) + fmt = "\n".join([f"{colored_level}{separator}{line}" for line in lines]) else: fmt = f"{colored_level}{separator}{message}"