The GitHub Actions job "Fory CI" on fory.git/feat/python-union-type-support has 
failed.
Run started by GitHub user zhan7236 (triggered by zhan7236).

Head commit for run:
44b6b9a80ac972468c17a67fd0a427944c81ea5b / zhan7236 
<[email protected]>
feat(python): add Union type support for xlang serialization

This commit implements support for typing.Union types in Python Fory,
addressing issue #3029.

Changes:
- Add TypeId.UNION (38) and TypeId.NONE (39) to python/pyfory/type.py
- Implement UnionSerializer in python/pyfory/_serializer.py
  * Supports both Python mode and xlang mode
  * Writes variant index and type information
  * Properly dispatches to alternative type serializers
- Update python/pyfory/_registry.py to detect and create UnionSerializer
  for typing.Union types
- Export UnionSerializer from python/pyfory/serializer.py
- Add comprehensive test cases in python/pyfory/tests/test_union.py

The implementation follows the same protocol as C++ variant serialization:
1. Write variant index (varuint32)
2. In xlang mode, write type info for the active alternative
3. Write the value using the alternative's serializer

Fixes #3029

Report URL: https://github.com/apache/fory/actions/runs/20295071212

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to