Skip to content

Commit

Permalink
This does the trick for serializing and parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
skinkie committed Jun 18, 2024
1 parent 6bfeb67 commit 0217905
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xsdata/formats/dataclass/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ def evaluate_element(annotation: Any, tokens: bool = False) -> Result:
factory = tokens_factory
tokens_factory = origin
else:
factory = origin
if origin == Iterable:
factory = list
else:
factory = origin

types = args
origin = get_origin(args[0])
Expand Down

0 comments on commit 0217905

Please sign in to comment.