junrushao commented on code in PR #60:
URL: https://github.com/apache/tvm-ffi/pull/60#discussion_r2383232073
##########
python/tvm_ffi/testing.py:
##########
@@ -38,7 +38,16 @@ class TestObjectBase(Object):
@register_object("testing.TestIntPair")
class TestIntPair(Object):
- """Test Int Pair."""
+ """Test Int Pair.
+
+ Attributes
+ ----------
+ a : int
+ The first integer.
+ b : int
+ The second integer.
Review Comment:
I'm able to reproduce the warning upstream:
```
/Users/jshao/Projects/tvm-ffi/python/tvm_ffi/testing.py:docstring of
tvm_ffi.testing.TestIntPair.a:1: WARNING: duplicate object description of
tvm_ffi.testing.TestIntPair.a, other instance in
reference/python/cpp/generated/tvm_ffi.testing.TestIntPair, use :no-index: for
one of them
/Users/jshao/Projects/tvm-ffi/python/tvm_ffi/testing.py:docstring of
tvm_ffi.testing.TestIntPair.b:1: WARNING: duplicate object description of
tvm_ffi.testing.TestIntPair.b, other instance in
reference/python/cpp/generated/tvm_ffi.testing.TestIntPair, use :no-index: for
one of them
```
once I add `testing.TestIntPair` to `docs/reference/python/index.rst`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]