Skip to content

Commit c44b323

Browse files
committed
fix: remove unnecessary type annotation quotes (UP037)
1 parent 9c6e8de commit c44b323

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ha_mcp/settings_ui.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _get_config_path() -> Path:
9292
return home_dir / "tool_config.json"
9393

9494

95-
def load_tool_config(settings: "Settings | None" = None) -> dict[str, Any]:
95+
def load_tool_config(settings: Settings | None = None) -> dict[str, Any]:
9696
"""Load persisted tool config, seeding from env vars if no file exists."""
9797
path = _get_config_path()
9898
if path.exists():
@@ -138,7 +138,7 @@ def save_tool_config(config: dict[str, Any]) -> None:
138138
logger.exception("Failed to save tool config to %s", path)
139139

140140

141-
async def _get_tool_metadata(server: "HomeAssistantSmartMCPServer") -> list[dict[str, Any]]:
141+
async def _get_tool_metadata(server: HomeAssistantSmartMCPServer) -> list[dict[str, Any]]:
142142
"""Extract metadata for all registered tools from the server.
143143
144144
Uses FastMCP's internal ``local_provider._list_tools()`` because the
@@ -202,9 +202,9 @@ async def _get_tool_metadata(server: "HomeAssistantSmartMCPServer") -> list[dict
202202

203203

204204
def apply_tool_visibility(
205-
mcp: "FastMCP",
205+
mcp: FastMCP,
206206
config: dict[str, Any],
207-
settings: "Settings",
207+
settings: Settings,
208208
) -> set[str]:
209209
"""Apply tool visibility from config, respecting safety toggles.
210210

0 commit comments

Comments
 (0)