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:
@@ -8,12 +8,12 @@ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||
|
||||
from simulation.workflow_sim import WorkflowSimulator
|
||||
|
||||
def test_simulator_instantiation():
|
||||
def test_simulator_instantiation() -> None:
|
||||
client = MagicMock()
|
||||
sim = WorkflowSimulator(client)
|
||||
assert sim is not None
|
||||
|
||||
def test_setup_new_project():
|
||||
def test_setup_new_project() -> None:
|
||||
client = MagicMock()
|
||||
sim = WorkflowSimulator(client)
|
||||
# Mock responses for wait_for_server
|
||||
@@ -24,7 +24,7 @@ def test_setup_new_project():
|
||||
client.set_value.assert_any_call("project_git_dir", "/tmp/test_git")
|
||||
client.click.assert_any_call("btn_project_save")
|
||||
|
||||
def test_discussion_switching():
|
||||
def test_discussion_switching() -> None:
|
||||
client = MagicMock()
|
||||
sim = WorkflowSimulator(client)
|
||||
sim.create_discussion("NewDisc")
|
||||
@@ -33,7 +33,7 @@ def test_discussion_switching():
|
||||
sim.switch_discussion("NewDisc")
|
||||
client.select_list_item.assert_called_with("disc_listbox", "NewDisc")
|
||||
|
||||
def test_history_truncation():
|
||||
def test_history_truncation() -> None:
|
||||
client = MagicMock()
|
||||
sim = WorkflowSimulator(client)
|
||||
sim.truncate_history(3)
|
||||
|
||||
Reference in New Issue
Block a user