Skip to content

Commit

Permalink
Follow-up to #61 (#63)
Browse files Browse the repository at this point in the history
Why
===

I didn't realize we didn't have codegen execution tests, I'll be more
careful in the future.

What changed
============

Fixed two runtime issues

Test plan
=========

Manual testing
  • Loading branch information
blast-hardcheese authored Aug 9, 2024
1 parent d9c411b commit b4f084d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions replit_river/codegen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def generate_river_client_module(
f" '{schema_name}',",
f" '{name}',",
" input,",
" lambda x: TypeAdapter({input_type}).dump_python(x, ",
f" lambda x: TypeAdapter({input_type}).dump_python(x, ",
" by_alias=True,",
" exclude_none=True,",
" ),",
Expand All @@ -298,7 +298,7 @@ def generate_river_client_module(
f" '{schema_name}',",
f" '{name}',",
" input,",
" lambda x: TypeAdapter({input_type}).dump_python(x,",
f" lambda x: TypeAdapter({input_type}).dump_python(x,",
" by_alias=True,",
" exclude_none=True,",
" ),",
Expand Down Expand Up @@ -326,8 +326,8 @@ def generate_river_client_module(
f" '{name}',",
" init,",
" inputStream,",
f" lambda TypeAdapter({init_type}).validate_python,",
" lambda x: TypeAdapter({input_type}).dump_python(x, ",
f" TypeAdapter({init_type}).validate_python,",
f" lambda x: TypeAdapter({input_type}).dump_python(x,",
" by_alias=True,",
" exclude_none=True,",
" ),",
Expand All @@ -349,7 +349,7 @@ def generate_river_client_module(
" None,",
" inputStream,",
" None,",
" lambda x: TypeAdapter({input_type}).dump_python(x, ",
f" lambda x: TypeAdapter({input_type}).dump_python(x,",
" by_alias=True,",
" exclude_none=True,",
" ),",
Expand All @@ -373,7 +373,7 @@ def generate_river_client_module(
" init,",
" inputStream,",
f" TypeAdapter({init_type}).validate_python,",
" lambda x: TypeAdapter({init_type}).dump_python(x, ",
f" lambda x: TypeAdapter({input_type}).dump_python(x,",
" by_alias=True,",
" exclude_none=True,",
" ),",
Expand All @@ -395,7 +395,7 @@ def generate_river_client_module(
" None,",
" inputStream,",
" None,",
" lambda x: TypeAdapter({input_type}).dump_python(x, ",
f" lambda x: TypeAdapter({input_type}).dump_python(x,",
" by_alias=True,",
" exclude_none=True,",
" ),",
Expand Down

0 comments on commit b4f084d

Please sign in to comment.