Skip to content

Commit b57487c

Browse files
authored
Merge pull request #1271 from tisnik/lcore-1406-linter-errors-up006
LCORE-1406: linter errors up006
2 parents ca6097a + 737b82c commit b57487c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ disable = ["R0801"]
223223
extend-exclude = ["tests/profiles/syntax_error.py"]
224224

225225
[tool.ruff.lint]
226-
extend-select = ["TID251"]
226+
extend-select = ["TID251", "UP006"]
227227

228228
[tool.ruff.lint.flake8-tidy-imports.banned-api]
229229
unittest = { msg = "use pytest instead of unittest" }

src/authorization/middleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Authorization middleware and decorators."""
22

33
from functools import lru_cache, wraps
4-
from typing import Any, Callable, Optional, Tuple
4+
from typing import Any, Callable, Optional
55

66
from fastapi import HTTPException
77
from starlette.requests import Request
@@ -27,7 +27,7 @@
2727

2828

2929
@lru_cache(maxsize=1)
30-
def get_authorization_resolvers() -> Tuple[RolesResolver, AccessResolver]:
30+
def get_authorization_resolvers() -> tuple[RolesResolver, AccessResolver]:
3131
"""Get authorization resolvers from configuration (cached).
3232
3333
Return the configured RolesResolver and AccessResolver based on

src/utils/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import asyncio
44
from functools import wraps
5-
from typing import Any, Callable, List, cast
5+
from typing import Any, Callable, cast
66
from logging import Logger
77

88
from llama_stack_client import AsyncLlamaStackClient
@@ -54,7 +54,7 @@ async def register_mcp_servers_async(
5454

5555
async def _register_mcp_toolgroups_async(
5656
client: AsyncLlamaStackClient,
57-
mcp_servers: List[ModelContextProtocolServer],
57+
mcp_servers: list[ModelContextProtocolServer],
5858
logger: Logger,
5959
) -> None:
6060
"""

0 commit comments

Comments
 (0)