Skip to content

Commit 0413b7a

Browse files
author
mcp-release-bot
committed
fix: resolve mypy type checking errors
- Fixed duplicate variable name 'plan_required_fields' in workflow_guidance.py - Added missing 'workflow_guidance' field to SystemVars model - All type checking now passes without errors
1 parent c86d383 commit 0413b7a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/mcp_as_a_judge/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class SystemVars(BaseModel):
6969
task_size_definitions: str = Field(default="")
7070
plan_input_schema: str = Field(default="")
7171
plan_evaluation_criteria: str = Field(default="")
72+
workflow_guidance: str = Field(default="")
7273

7374

7475
class DynamicSchemaUserVars(BaseModel):

src/mcp_as_a_judge/workflow/workflow_guidance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ async def calculate_next_stage(
514514
)
515515

516516
# Generate plan required fields if next tool is judge_coding_plan
517-
plan_required_fields: list[PlanRequiredField] = []
517+
dynamic_plan_required_fields: list[PlanRequiredField] = []
518518
if normalized_next_tool == "judge_coding_plan":
519519
# Combine persisted metadata with any freshly-determined requirements
520520
metadata_for_requirements = task_metadata.model_copy(deep=True)
@@ -536,7 +536,7 @@ async def calculate_next_stage(
536536
update=overrides
537537
)
538538

539-
plan_required_fields = _generate_plan_required_fields(
539+
dynamic_plan_required_fields = _generate_plan_required_fields(
540540
metadata_for_requirements
541541
)
542542

@@ -557,7 +557,7 @@ async def calculate_next_stage(
557557
"design_patterns_enforcement"
558558
),
559559
# Plan requirements for judge_coding_plan
560-
plan_required_fields=plan_required_fields,
560+
plan_required_fields=dynamic_plan_required_fields,
561561
)
562562

563563
# Fallback: if next_tool missing/None and not completed, route to get_current_coding_task

0 commit comments

Comments
 (0)