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
When running following code
from typing import Tuple import jsons from dataclasses import dataclass @dataclass class A: tup: Tuple[str, ...] a = A(('abc', 'qwe', '123')) a_ser = jsons.dump(a) a_deser = jsons.load(a_ser, A)
I get exception AttributeError: 'ellipsis' object has no attribute '__origin__' on the last line.
AttributeError: 'ellipsis' object has no attribute '__origin__'
I can simply use List[str] as type, but it would be nice to be able to deserialize into tuple of variable length.
List[str]
The text was updated successfully, but these errors were encountered:
Thank you haluzpav. This issue has been resolved in jsons 0.6.1.
Sorry, something went wrong.
No branches or pull requests
When running following code
I get exception
AttributeError: 'ellipsis' object has no attribute '__origin__'
on the last line.I can simply use
List[str]
as type, but it would be nice to be able to deserialize into tuple of variable length.The text was updated successfully, but these errors were encountered: