Skip to content

Commit

Permalink
Fix Integer def
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-phillips committed Aug 24, 2024
1 parent 3ea676f commit 197ce74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ are ) in the codebase, as of the last time that I updated this list.
tuple-like _or_ record-like syntax?
- Labelled parameters in function calls are not transformed (ie `fn foo(bar baz: Str)`)
- (EASY) Discard parameters in function arguments are not transformed
- Bitstrings are not supported yet
- Codepoints in bistrings are not supported yet
- non-byte-aligned bitstrings are not supported yet
- case guards are not supported yet
- Functions as type fields are not supported yet
- debatable whether to make them a `def` right on the class or have the def be defined somewhere and just attach it like other fields
Expand Down
2 changes: 1 addition & 1 deletion src/python_prelude.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def gleam_bitstring_segment_to_bytes(segment) -> bytes:
endianness = sys.byteorder
case ('Float', None):
type = 'float'
case ('Integer', None):
case ('Int', None):
type = 'int'
case ('BitString', None):
type = 'bitstring'
Expand Down

0 comments on commit 197ce74

Please sign in to comment.