The GitHub Actions job "Lint" on tvm.git/fix-pep563-closure-vars has failed.
Run started by GitHub user tqchen (triggered by tqchen).

Head commit for run:
fdf7bb37efe19cc913aeabbf49c1a466a28e06fb / tqchen <[email protected]>
fix PEP 563 closure: resolve only annotation names, not all caller locals

The previous ChainMap approach added ALL caller-frame locals to the
TVMScript namespace, causing name collisions (e.g. `gv` from a test
function shadowing a nested @R.function def gv).

Replace with resolve_closure_vars: parses the source AST to find names
used in function annotations, then looks up only those names in enclosing
frames. This resolves PEP 563 closure variables (like M in
T.Buffer((M,), "float32")) without polluting the namespace.

Applied to both @T.prim_func and @I.ir_module paths.

Report URL: https://github.com/apache/tvm/actions/runs/22533371541

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to