Skip to content

Commit

Permalink
Update replit_river/codegen/client.py
Browse files Browse the repository at this point in the history
Co-authored-by: Devon Stewart <[email protected]>
  • Loading branch information
cbrewster and blast-hardcheese authored Nov 28, 2024
1 parent 07f1016 commit cc8ef75
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions replit_river/codegen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,12 @@ def extract_props(tpe: RiverType) -> list[dict[str, RiverType]]:
if base_model != "TypedDict":
value = " = None"
current_chunks.append(
f" {name}: "
+ "NotRequired[Optional[{render_type_expr(type_name)}]]"
+ value
reindent(
" ",
f"""\
{name}: NotRequired[Optional[{render_type_expr(type_name)}]]{value}
""",
)
)
else:
current_chunks.append(
Expand Down

0 comments on commit cc8ef75

Please sign in to comment.