refactor(types): auto -> None sweep across entire codebase
Applied 236 return type annotations to functions with no return values across 100+ files (core modules, tests, scripts, simulations). Added Phase 4 to python_style_refactor track for remaining 597 items (untyped params, vars, and functions with return values). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@ class TrackDAG:
|
||||
Provides methods for dependency resolution, cycle detection, and topological sorting.
|
||||
"""
|
||||
|
||||
def __init__(self, tickets: List[Ticket]):
|
||||
def __init__(self, tickets: List[Ticket]) -> None:
|
||||
"""
|
||||
Initializes the TrackDAG with a list of Ticket objects.
|
||||
Args:
|
||||
@@ -99,7 +99,7 @@ class ExecutionEngine:
|
||||
Handles automatic queueing and manual task approval.
|
||||
"""
|
||||
|
||||
def __init__(self, dag: TrackDAG, auto_queue: bool = False):
|
||||
def __init__(self, dag: TrackDAG, auto_queue: bool = False) -> None:
|
||||
"""
|
||||
Initializes the ExecutionEngine.
|
||||
Args:
|
||||
@@ -123,7 +123,7 @@ class ExecutionEngine:
|
||||
ticket.status = "in_progress"
|
||||
return ready
|
||||
|
||||
def approve_task(self, task_id: str):
|
||||
def approve_task(self, task_id: str) -> None:
|
||||
"""
|
||||
Manually transitions a task from 'todo' to 'in_progress' if its dependencies are met.
|
||||
Args:
|
||||
@@ -141,7 +141,7 @@ class ExecutionEngine:
|
||||
if all_done:
|
||||
ticket.status = "in_progress"
|
||||
|
||||
def update_task_status(self, task_id: str, status: str):
|
||||
def update_task_status(self, task_id: str, status: str) -> None:
|
||||
"""
|
||||
Force-updates the status of a specific task.
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user