From 6ffed78fd9ca061a6d3333e5326031d5519032eb Mon Sep 17 00:00:00 2001 From: Mohd Kaif <98801504+KaifAhmad1@users.noreply.github.com> Date: Mon, 27 Apr 2026 18:39:09 +0530 Subject: [PATCH] Potential fix for pull request finding 'Module is imported with 'import' and 'import from'' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- tests/_smoke_review_fixes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/_smoke_review_fixes.py b/tests/_smoke_review_fixes.py index 29fb7323..9c129909 100644 --- a/tests/_smoke_review_fixes.py +++ b/tests/_smoke_review_fixes.py @@ -85,9 +85,9 @@ def test_bug004_causal_distance_report_schema_validates(): # ── qual_003: _distance_band static methods removed; classify_path_distance used ─ def test_qual003_distance_band_removed_from_causal_analyzer(): - import semantica.context.causal_analyzer as ca_mod - assert not hasattr(ca_mod.CausalChainAnalyzer, "_distance_band") - ca_src = inspect.getsource(ca_mod) + from semantica.context.causal_analyzer import CausalChainAnalyzer + assert not hasattr(CausalChainAnalyzer, "_distance_band") + ca_src = inspect.getsource(CausalChainAnalyzer) assert "def _distance_band" not in ca_src assert "classify_path_distance" in ca_src