We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c09852a commit a66f099Copy full SHA for a66f099
1 file changed
src/hsd/dump.py
@@ -120,10 +120,10 @@ def _list_to_hsd(lst):
120
121
def _item_to_hsd(item):
122
123
- if isinstance(item, (int, float)):
124
- return str(item)
125
- elif isinstance(item, bool):
+ if isinstance(item, bool):
126
return "Yes" if item else "No"
+ elif isinstance(item, (int, float)):
+ return str(item)
127
elif isinstance(item, str):
128
return _str_to_hsd(item)
129
else:
0 commit comments