From 5f72acab207bef258ba31c46e54c99d5f1286139 Mon Sep 17 00:00:00 2001 From: Torgny Bjers Date: Sat, 6 Jun 2026 16:38:33 -0400 Subject: [PATCH 1/2] Apply suggested fix to tests/test_shaker.py from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- tests/test_shaker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_shaker.py b/tests/test_shaker.py index 387abe0..a7ad7cc 100644 --- a/tests/test_shaker.py +++ b/tests/test_shaker.py @@ -67,6 +67,7 @@ def test_collects_call_in_nested_module_body(self, tmp_path): def test_collects_function_call_inside_module(self, tmp_path): names = collect_called_names(parse(tmp_path, "module foo(s) { cube(scale(s)); }")) assert "scale" in names + assert "cube" in names def test_collects_call_in_assignment_rhs(self, tmp_path): names = collect_called_names(parse(tmp_path, "x = double(5);")) From 183d4c87567eb64348ed66bbec6b814b451c0179 Mon Sep 17 00:00:00 2001 From: Torgny Bjers Date: Sat, 6 Jun 2026 16:38:33 -0400 Subject: [PATCH 2/2] Apply suggested fix to tests/test_shaker.py from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- tests/test_shaker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_shaker.py b/tests/test_shaker.py index a7ad7cc..fd3bd9e 100644 --- a/tests/test_shaker.py +++ b/tests/test_shaker.py @@ -1,5 +1,6 @@ """Unit tests for openscad_packer.shaker.""" from pathlib import Path +from typing import Any from openscad_parser.ast import getASTfromFile from openscad_parser.ast.nodes import FunctionDeclaration, ModuleDeclaration @@ -7,7 +8,7 @@ from openscad_packer.shaker import collect_called_names, compute_reachable -def parse(tmp_path: Path, content: str) -> list: +def parse(tmp_path: Path, content: str) -> list[Any]: f = tmp_path / "test.scad" f.write_text(content) return getASTfromFile(str(f), process_includes=False) or []