junrushao commented on code in PR #663:
URL: https://github.com/apache/tvm-ffi/pull/663#discussion_r3576147841
##########
python/tvm_ffi/dataclasses/py_class.py:
##########
@@ -521,24 +402,25 @@ def _register_fields_into_type(
# ``tvm_ffi.dataclasses.fields()`` compat layer can recover defaults
# and default_factory values. _register_fields preserves order, so
# own_fields and type_info.fields line up 1:1.
+ assert len(own_fields) == len(type_info.fields)
for py_field, type_field in zip(own_fields, type_info.fields):
type_field.dataclass_field = py_field
Review Comment:
it makes no difference
--
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]