You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fory.apache.org by "chaokunyang (via GitHub)" <gi...@apache.org> on 2026/03/11 00:55:03 UTC
[PR] fix(python): support tuple dataclass fields and object instances [fory]
chaokunyang opened a new pull request, #3468:
URL: https://github.com/apache/fory/pull/3468
## Summary
- support typed `tuple[...]` dataclass fields in Python native-mode field inference by routing them to `TupleSerializer`
- serialize instances without `__dict__` as zero-field objects so bare `object()` round-trips cleanly
- add focused regressions for both issues, including empty-object ref tracking behavior
## Testing
- cd python && ruff format --check pyfory/type_util.py pyfory/struct.py pyfory/serializer.py pyfory/tests/test_struct.py pyfory/tests/test_serializer.py
- cd python && ruff check pyfory/type_util.py pyfory/struct.py pyfory/serializer.py pyfory/tests/test_struct.py pyfory/tests/test_serializer.py
- cd python && ENABLE_FORY_CYTHON_SERIALIZATION=0 pytest -q .
- cd python && ENABLE_FORY_CYTHON_SERIALIZATION=1 pytest -q .
Closes #3466
Closes #3467
--
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: commits-unsubscribe@fory.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org
Re: [PR] fix(python): support tuple dataclass fields and object instances [fory]
Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang merged PR #3468:
URL: https://github.com/apache/fory/pull/3468
--
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: commits-unsubscribe@fory.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org