Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rnag committed Nov 13, 2024
1 parent 9a98d9d commit 6d86722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataclass_wizard/dumpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def dump_func_for_dataclass(cls: Type[T],
f"asdict(obj.{field},dict_factory,hooks,config,cls_to_asdict)))")

with cb.if_block('exclude is None'):
cb.add_line(f'{'='.join(skip_field_assignments)}=False')
cb.add_line('='.join(skip_field_assignments) + '=False')
with cb.else_block():
cb.add_line(';'.join(exclude_assignments))

Expand Down

0 comments on commit 6d86722

Please sign in to comment.