This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch script/canonical-parser-df
in repository https://gitbox.apache.org/repos/asf/tvm.git

commit 3bdd254a44b0eb1fb83a61c885bad39876ab7c2f
Author: Tianqi Chen <[email protected]>
AuthorDate: Wed Sep 23 05:09:21 2026 +0000

    Declare the updated scalar explicitly in printer roundtrip coverage
---
 tests/python/tirx/test_parser_printer.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/python/tirx/test_parser_printer.py 
b/tests/python/tirx/test_parser_printer.py
index 3d610406d0..d98cb2c36d 100644
--- a/tests/python/tirx/test_parser_printer.py
+++ b/tests/python/tirx/test_parser_printer.py
@@ -1265,13 +1265,13 @@ def func():
     with pytest.raises(tvm.error.DiagnosticError):
         from_source(src_ptr)
 
-    # 4. Bare assignment to new variable creates scalar — round-trip
+    # 4. An explicit mutable scalar declaration retains updates — round-trip
     # fmt: off
     @T.prim_func
     def test_bare_assign():
         T.device_entry()
         tid = T.launch_thread("threadIdx.x", 128)
-        x = tid + T.int32(1)
+        x: T.int32 = tid + T.int32(1)
         x = x + T.int32(2)
         T.evaluate(x)
         # fmt: on

Reply via email to