Skip to content

Commit

Permalink
fix prep_serialization ig
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Oct 5, 2024
1 parent 58eba96 commit 4a640f9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/mahou/templates/aiohttp_client.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,8 @@ def prep_val_serialization(v: Any) -> QueryVariable:


def prep_serialization(d: dict[str, Any]) -> Query:
for k, v in d.items():
if v is None:
del d[k]
else:
d[k] = prep_val_serialization(v)

return d
return {k: prep_val_serialization(v) for k, v in d.items()
if v is not None}


{% for module_name, operations in modules.items() %}
Expand Down

0 comments on commit 4a640f9

Please sign in to comment.