Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Oct 5, 2024
1 parent de490e9 commit 70cf225
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cattrs/gen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,7 @@ def mapping_unstructure_factory(
lines.append(f"def {fn_name}(mapping):")

if unstructure_to is dict:
lines.append(
f" res = {{{k_u}: {v_u} for k, v in mapping.items()}}"
)
lines.append(f" res = {{{k_u}: {v_u} for k, v in mapping.items()}}")
else:
lines.append(
f" res = __cattr_mapping_cl(({k_u}, {v_u}) for k, v in mapping.items())"
Expand Down

0 comments on commit 70cf225

Please sign in to comment.