Skip to content

Commit d18a2fd

Browse files
committed
docs: use properly typed dict[str, str] in resource return types
1 parent 2932236 commit d18a2fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/concepts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ mcp = MCPServer("Demo")
3737

3838

3939
@mcp.resource("config://app")
40-
def get_config() -> dict:
40+
def get_config() -> dict[str, str]:
4141
"""Expose application configuration."""
4242
return {"theme": "dark", "version": "2.0"}
4343

4444

4545
@mcp.resource("users://{user_id}/profile")
46-
def get_profile(user_id: str) -> dict:
46+
def get_profile(user_id: str) -> dict[str, str]:
4747
"""Get a user profile by ID."""
4848
return {"user_id": user_id, "name": "Alice"}
4949
```

0 commit comments

Comments
 (0)