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

tqchen pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/tvm-ffi.git


The following commit(s) were added to refs/heads/dev by this push:
     new af82dbb  fix: Always specify `method_pyfunc.__name__` (#7)
af82dbb is described below

commit af82dbb9a4cbb31f1ac9dc38195eaae747c31bcb
Author: Junru Shao <[email protected]>
AuthorDate: Sun Sep 14 03:59:24 2025 -0700

    fix: Always specify `method_pyfunc.__name__` (#7)
---
 python/tvm_ffi/cython/function.pxi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/tvm_ffi/cython/function.pxi 
b/python/tvm_ffi/cython/function.pxi
index 71c9522..ce6ea54 100644
--- a/python/tvm_ffi/cython/function.pxi
+++ b/python/tvm_ffi/cython/function.pxi
@@ -721,7 +721,7 @@ def _add_class_attrs_by_reflection(int type_index, object 
cls):
 
         if doc is not None:
             method_pyfunc.__doc__ = doc
-            method_pyfunc.__name__ = name
+        method_pyfunc.__name__ = name
 
         if hasattr(cls, name):
             # skip already defined attributes

Reply via email to