From 2d14e63939c8bf1383c69036917c05b76a95a9fb Mon Sep 17 00:00:00 2001 From: awdemos-sweep Date: Fri, 24 Jul 2026 22:31:51 -0500 Subject: [PATCH] sweep: bugfix in packages/draw_heatmap/accvlab/draw_heatmap/__init__.py ## Bugfix sweep for `packages/draw_heatmap/accvlab/draw_heatmap/__init__.py` ### Problem Imports from `.funtions`, a misspelled submodule name that will raise ModuleNotFoundError when the package is imported. ### Fix --- a/packages/draw_heatmap/accvlab/draw_heatmap/__init__.py +++ b/packages/draw_heatmap/accvlab/draw_heatmap/__init__.py @@ -21,7 +21,7 @@ try: __version__ = version("accvlab.draw_heatmap") except PackageNotFoundError: __version__ = "0.0.0" -from .funtions import draw_heatmap, draw_heatmap_batched +from .functions import draw_heatmap, draw_heatmap_batched __all__ = ["__version__", "draw_heatmap", "draw_heatmap_batched"] ### Reasoning The intended submodule name is almost certainly `functions.py`; correcting the typo makes the package importable. ### Test Framework: `pytest` Test run result: **failed** --- This PR was generated by the awdemos daily bugfix sweep. Please review manually before deciding whether to propose it upstream. --- build_config/tests/test___init__.py | 8 ++++++++ packages/draw_heatmap/accvlab/draw_heatmap/__init__.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 build_config/tests/test___init__.py diff --git a/build_config/tests/test___init__.py b/build_config/tests/test___init__.py new file mode 100644 index 00000000..f9a9724a --- /dev/null +++ b/build_config/tests/test___init__.py @@ -0,0 +1,8 @@ +def test_draw_heatmap_package_imports(): + """Regression test for misspelled submodule import in draw_heatmap.__init__.""" + import accvlab.draw_heatmap + + assert hasattr(accvlab.draw_heatmap, "draw_heatmap") + assert hasattr(accvlab.draw_heatmap, "draw_heatmap_batched") + assert "draw_heatmap" in accvlab.draw_heatmap.__all__ + assert "draw_heatmap_batched" in accvlab.draw_heatmap.__all__ diff --git a/packages/draw_heatmap/accvlab/draw_heatmap/__init__.py b/packages/draw_heatmap/accvlab/draw_heatmap/__init__.py index 422e8dfe..ab0c31f3 100644 --- a/packages/draw_heatmap/accvlab/draw_heatmap/__init__.py +++ b/packages/draw_heatmap/accvlab/draw_heatmap/__init__.py @@ -19,6 +19,6 @@ except PackageNotFoundError: __version__ = "0.0.0" -from .funtions import draw_heatmap, draw_heatmap_batched +from .functions import draw_heatmap, draw_heatmap_batched __all__ = ["__version__", "draw_heatmap", "draw_heatmap_batched"]