Skip to content

Commit 77b052b

Browse files
author
Zvi Fried
committed
fix: resolve linting errors for modern Python type annotations
- Replace typing.List with modern list[str] syntax - Fix import organization and remove unused typing imports - Use proper Optional syntax with | None union type - All linting checks now pass - All 41 tests still passing
1 parent a70ea9f commit 77b052b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/mcp_as_a_judge/models.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
serialization, and API contracts.
66
"""
77

8-
from typing import List
9-
108
from pydantic import BaseModel, Field
119

1210

@@ -139,7 +137,7 @@ class JudgeCodingPlanUserVars(BaseModel):
139137
research: str = Field(
140138
description="Research findings and analysis"
141139
)
142-
research_urls: List[str] = Field(
140+
research_urls: list[str] = Field(
143141
default_factory=list,
144142
description="URLs from MANDATORY online research - minimum 3 URLs required"
145143
)
@@ -193,7 +191,7 @@ class ResearchValidationUserVars(BaseModel):
193191
research: str = Field(
194192
description="Research findings to be validated"
195193
)
196-
research_urls: List[str] = Field(
194+
research_urls: list[str] = Field(
197195
default_factory=list,
198196
description="URLs from MANDATORY online research - minimum 3 URLs required"
199197
)

src/mcp_as_a_judge/server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
import json
1111

12-
from typing import List
13-
1412
from mcp.server.fastmcp import Context, FastMCP
1513
from mcp.types import (
1614
ClientCapabilities,
@@ -436,7 +434,7 @@ async def judge_coding_plan(
436434
user_requirements: str,
437435
ctx: Context,
438436
context: str = "",
439-
research_urls: List[str] = None,
437+
research_urls: list[str] | None = None,
440438
) -> JudgeResponse:
441439
"""🚨 MANDATORY: AI programming assistant MUST call this tool whenever you start to work on a coding task.
442440

0 commit comments

Comments
 (0)