Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ disable = ["R0801"]
extend-exclude = ["tests/profiles/syntax_error.py"]

[tool.ruff.lint]
extend-select = ["TID251", "UP006", "RUF100"]
extend-select = ["TID251", "UP006", "UP007", "RUF100"]

[tool.ruff.lint.flake8-tidy-imports.banned-api]
unittest = { msg = "use pytest instead of unittest" }
Expand Down
6 changes: 3 additions & 3 deletions src/models/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""Models for REST API responses."""

from typing import Any, ClassVar, Literal, Optional, Union
from typing import Any, ClassVar, Literal, Optional

from fastapi import status
from llama_stack_api.openai_responses import (
Expand Down Expand Up @@ -318,11 +318,11 @@ class ProviderResponse(AbstractSuccessfulResponse):
...,
description="The API this provider implements",
)
config: dict[str, Union[bool, float, str, list[Any], object, None]] = Field(
config: dict[str, bool | float | str | list[Any] | object | None] = Field(
...,
description="Provider configuration parameters",
)
health: dict[str, Union[bool, float, str, list[Any], object, None]] = Field(
health: dict[str, bool | float | str | list[Any] | object | None] = Field(
...,
description="Current health status of the provider",
)
Expand Down
4 changes: 2 additions & 2 deletions src/utils/conversations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import json
from datetime import UTC, datetime
from typing import Any, Optional, Union, cast
from typing import Any, Optional, cast

from llama_stack_api.openai_responses import (
OpenAIResponseOutputMessageFileSearchToolCall as FileSearchCall,
Expand All @@ -26,7 +26,7 @@
from utils.types import ToolCallSummary, ToolResultSummary


def _extract_text_from_content(content: Union[str, list[Any]]) -> str:
def _extract_text_from_content(content: str | list[Any]) -> str:
"""Extract text content from message content.

Args:
Expand Down
Loading