Skip to content

Commit

Permalink
Fix (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenthebuilder authored May 30, 2024
1 parent 373e954 commit 04bdb1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions replit_river/codegen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def encode_type(
if type.type == "Uint8Array":
return ("bytes", ())
if type.type == "number":
if type.const is not None:
# enums are represented as const number in the schema
return ("int", ())
return ("float", ())
if type.type == "integer":
return ("int", ())
Expand Down

0 comments on commit 04bdb1c

Please sign in to comment.