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

Cannot dump or load None with type NoneType. #63

Open
rhaps0dy opened this issue Mar 22, 2024 · 0 comments
Open

Cannot dump or load None with type NoneType. #63

rhaps0dy opened this issue Mar 22, 2024 · 0 comments

Comments

@rhaps0dy
Copy link
Contributor

A bit silly, but a dataclass with a field of type None (or de/serializing something with NoneType itself) errors.

from databind.json import dump, load

load(None, None)
# NoMatchingConverter: no deserializer for `TypeHint(NoneType)` and payload of type `NoneType`

dump(None, None)
# NoMatchingConverter: no serializer for `TypeHint(NoneType)` and payload of type `NoneType`

Is this intentional or an oversight?

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

No branches or pull requests

1 participant