We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 086f3e7 commit 864ff70Copy full SHA for 864ff70
1 file changed
src/treemapper/diffctx/edges/semantic/python.py
@@ -14,7 +14,7 @@
14
_SYMBOL_REF_WEIGHT = 0.95
15
_TYPE_REF_WEIGHT = 0.60
16
17
-_PY_IMPORT_RE = re.compile(r"(?:from\s+(\.{0,3}[\w.]{0,200})\s+import|import\s+([\w.]{1,200}))")
+_PY_IMPORT_RE = re.compile(r"(?:from\s{1,20}(\.{0,3}[\w.]{0,200})\s{1,20}import|import\s{1,20}([\w.]{1,200}))")
18
19
20
def _is_python_file(path: Path) -> bool:
0 commit comments