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

fix: cleanup serializer #399

Merged
merged 1 commit into from
Dec 19, 2022
Merged

fix: cleanup serializer #399

merged 1 commit into from
Dec 19, 2022

Conversation

andrewthetechie
Copy link
Owner

serialize_partially and deserialize_partially had a dead code path, using "json dump shapes" to determine to json dump something. However, the first if checking for str, float, or int already handles that.

This dead code was found using hypothesis testing, included in the new tests/test_abstract.py. In the future, I'd like to augment the hardcoded test data in test_pydantic_aioredis with hypothesis data

serialize_partially and deserialize_partially had a dead code path,
using "json dump shapes" to determine to json dump something. However,
the first if checking for str, float, or int already handles that.

This dead code was found using hypothesis testing, included in the new
tests/test_abstract.py. In the future, I'd like to augment the
hardcoded test data in test_pydantic_aioredis with hypothesis data
@andrewthetechie andrewthetechie merged commit ec1421c into main Dec 19, 2022
@andrewthetechie andrewthetechie deleted the simplify-serializer branch December 19, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant