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 @@ import multi_agent_conductor
|
||||
from models import Track, Ticket
|
||||
|
||||
@pytest.fixture
|
||||
def mock_ai_client():
|
||||
def mock_ai_client() -> None:
|
||||
with patch("ai_client.send") as mock_send:
|
||||
yield mock_send
|
||||
|
||||
@@ -40,7 +40,7 @@ def test_generate_tickets(mock_ai_client):
|
||||
assert tickets[1]["id"] == "T-002"
|
||||
assert tickets[1]["depends_on"] == ["T-001"]
|
||||
|
||||
def test_topological_sort():
|
||||
def test_topological_sort() -> None:
|
||||
tickets = [
|
||||
{"id": "T-002", "description": "Dep on 001", "depends_on": ["T-001"]},
|
||||
{"id": "T-001", "description": "Base", "depends_on": []},
|
||||
@@ -51,7 +51,7 @@ def test_topological_sort():
|
||||
assert sorted_tickets[1]["id"] == "T-002"
|
||||
assert sorted_tickets[2]["id"] == "T-003"
|
||||
|
||||
def test_topological_sort_circular():
|
||||
def test_topological_sort_circular() -> None:
|
||||
tickets = [
|
||||
{"id": "T-001", "depends_on": ["T-002"]},
|
||||
{"id": "T-002", "depends_on": ["T-001"]}
|
||||
@@ -59,7 +59,7 @@ def test_topological_sort_circular():
|
||||
with pytest.raises(ValueError, match="Circular dependency detected"):
|
||||
conductor_tech_lead.topological_sort(tickets)
|
||||
|
||||
def test_track_executable_tickets():
|
||||
def test_track_executable_tickets() -> None:
|
||||
t1 = Ticket(id="T1", description="desc", status="todo", assigned_to="user")
|
||||
t2 = Ticket(id="T2", description="desc", status="todo", assigned_to="user", depends_on=["T1"])
|
||||
track = Track(id="track_1", description="desc", tickets=[t1, t2])
|
||||
@@ -73,7 +73,7 @@ def test_track_executable_tickets():
|
||||
assert executable[0].id == "T2"
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_conductor_engine_run_linear():
|
||||
async def test_conductor_engine_run_linear() -> None:
|
||||
t1 = Ticket(id="T1", description="desc", status="todo", assigned_to="user")
|
||||
t2 = Ticket(id="T2", description="desc", status="todo", assigned_to="user", depends_on=["T1"])
|
||||
track = Track(id="track_1", description="desc", tickets=[t1, t2])
|
||||
@@ -89,7 +89,7 @@ async def test_conductor_engine_run_linear():
|
||||
assert t2.status == "completed"
|
||||
assert mock_worker.call_count == 2
|
||||
|
||||
def test_conductor_engine_parse_json_tickets():
|
||||
def test_conductor_engine_parse_json_tickets() -> None:
|
||||
track = Track(id="track_1", description="desc")
|
||||
engine = multi_agent_conductor.ConductorEngine(track)
|
||||
json_data = json.dumps([
|
||||
|
||||
Reference in New Issue
Block a user