Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dataclass): add serialization function #68

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Conversation

ktro2828
Copy link
Collaborator

What

This PR introduces following changes:

  • Add a function to serialize dataclasses defined by attrs, which is called serialize_dataclass.
  • The internal works of serialize_schema is replaced by serialize_dataclass.
    • By this change, no need to use shortcuts methods anymore, then they are removed.

Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@github-actions github-actions bot added documentation Improvements or additions to documentation new-feature New feature or request labels Dec 11, 2024
Copy link

☂️ Python Coverage

current status: ❌

Overall Coverage

Lines Covered Coverage Threshold Status
2095 1418 68% 50% 🟢

New Files

File Coverage Status
t4_devkit/common/serialize.py 100% 🟢
TOTAL 100% 🟢

Modified Files

File Coverage Status
t4_devkit/schema/serialize.py 90% 🟢
t4_devkit/schema/tables/base.py 100% 🟢
t4_devkit/schema/tables/log.py 100% 🟢
t4_devkit/schema/tables/object_ann.py 80% 🟢
t4_devkit/schema/tables/sample.py 100% 🟢
t4_devkit/schema/tables/sample_annotation.py 97% 🟢
t4_devkit/schema/tables/sample_data.py 98% 🟢
t4_devkit/schema/tables/sensor.py 100% 🟢
t4_devkit/schema/tables/surface_ann.py 76% 🔴
TOTAL 93% 🔴

updated for commit: 620a950 by action🐍

@ktro2828 ktro2828 merged commit 2c9be73 into main Dec 11, 2024
4 of 5 checks passed
@ktro2828 ktro2828 deleted the feat/dataclass/serialize branch December 11, 2024 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation new-feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant