Skip to content

Commit 2b1f599

Browse files
authored
[Fix] Fix a type that make wrong T.macro backtrace (#1234)
1 parent 454a9df commit 2b1f599

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tilelang/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def _compute_version() -> str:
2222
version_file = repo_root / "VERSION"
2323
if version_file.is_file():
2424
try:
25-
import version_provider
2625
from version_provider import dynamic_metadata # type: ignore
2726
return dynamic_metadata("version")
2827
except Exception:

tilelang/language/v2/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def visit_Assert(self, node: ast.Assert):
553553

554554
def visit_Name(self, node: ast.Name):
555555
if isinstance(node.ctx, ast.Load):
556-
return quote_expr(f"__tb.rval('{node.id}', {node.id})", span=node)
556+
return quote_expr(f"__tb.rval('{node.id}', node)", node=node, span=node)
557557
return node
558558

559559

0 commit comments

Comments
 (0)