You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "junrushao (via GitHub)" <gi...@apache.org> on 2026/08/29 16:28:04 UTC
[PR] [FIX] Stabilize Python annotation metadata [tvm-ffi]
junrushao opened a new pull request, #718:
URL: https://github.com/apache/tvm-ffi/pull/718
## Summary
- use `typing_extensions.get_annotations` for class-local annotations across Python versions
- preserve decorated enum subclass identity under static type checking
- keep `converter` in dataclass-transform metadata without passing an unsupported decorator keyword
- raise the minimum `typing-extensions` version to the release that provides `get_annotations`
This branch contains only the content of commit `3c6003f0809174477004ccf900108e2b893ae126`, replayed independently onto current Apache `main`.
## Testing
- `uv run pytest -q tests/python/test_dataclass_c_class.py::test_c_class_dataclass_transform_has_converter tests/python/test_dataclass_py_class.py::test_py_class_dataclass_transform_has_converter`
- changed-file pre-commit hooks
--
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: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] [FIX] Stabilize Python annotation metadata [tvm-ffi]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen merged PR #718:
URL: https://github.com/apache/tvm-ffi/pull/718
--
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: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org