Skip to content

Commit

Permalink
DictTransformer.to_tf_inline - handle float type (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkozik-amplify authored Feb 13, 2025
1 parent 90cca4c commit 8796805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hcl2/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def to_tf_inline(self, value: Any) -> str:
return "true" if value else "false"
if isinstance(value, str):
return value
if isinstance(value, int):
if isinstance(value, (int, float)):
return str(value)
if value is None:
return "None"
Expand Down

0 comments on commit 8796805

Please sign in to comment.