junrushao opened a new pull request, #506: URL: https://github.com/apache/tvm-ffi/pull/506
## Summary - Adds `@py_class` decorator that enables defining TVM FFI classes entirely in Python with dataclass-like semantics, including typed fields, `__init__`, structural `__eq__`/`__hash__`/`__repr__`, and two-phase registration for forward/self-referential types - Exports `py_class`, `Field`, `field`, and `KW_ONLY` from `tvm_ffi.dataclasses` - Comprehensive test suite (246 tests) covering the decorator, field API, inheritance, type conversion, copy/hash, and edge cases ## Test plan - [x] All 246 `py_class`-specific tests pass (`tests/python/test_dataclass_py_class.py`) - [x] Full Python test suite passes (1817 passed, 25 skipped, 3 xfailed) - [x] All pre-commit hooks pass (ruff, ty check, ASF header, etc.) - [ ] CI (Linux x86_64 + aarch64, macOS arm64, Windows AMD64) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
