We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Feature request for:
@dataclass class HasLiteral: foo: Literal["one"] jsons.loads('{"foo": "one"}', HasLiteral)
Currently gives:
DeserializationError: No deserializer for type "typing.Literal"
And more realistic use case:
@dataclass class HasLiteral: foo: Union[Literal["one"], Literal["two"]]
DeserializationError: Could not match the object of type "str" to any type of the Union: Literal, Literal
I can have a go if a PR would be accepted?
The text was updated successfully, but these errors were encountered:
Hi @davetapley. I think your feature request makes sense, I would gladly accept a PR on this 😃
Sorry, something went wrong.
No branches or pull requests
Feature request for:
Currently gives:
And more realistic use case:
Currently gives:
I can have a go if a PR would be accepted?
The text was updated successfully, but these errors were encountered: