Skip to content

Commit

Permalink
Tree: Format
Browse files Browse the repository at this point in the history
Signed-off-by: kingbri <[email protected]>
  • Loading branch information
bdashore3 committed Mar 8, 2024
1 parent 43c7139 commit 2767256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion OAI/types/sampler_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down
7 changes: 1 addition & 6 deletions common/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 2767256

Please sign in to comment.