Skip to content

Commit a4edc22

Browse files
authored
feat: add support for float (#140)
1 parent 85c0ab5 commit a4edc22

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

examples/simple/default.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ deep:
66
deep_list:
77
- item1
88
- item2
9-
9+
price: 0.5

examples/simple/production/env.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ deep:
44
key3: v3
55
deep_list:
66
- item3
7+
price: 1.0

himl/python_compat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
iteritems = lambda d: iter(d.items())
1717
integer_types = (int,)
1818
string_types = (str,)
19-
primitive_types = (str, int, bool)
19+
primitive_types = (str, int, float, bool)
2020
else:
2121
iteritems = lambda d: d.iteritems()
2222
integer_types = (int, long)
2323
string_types = (str, unicode)
24-
primitive_types = (str, unicode, int, long, bool)
24+
primitive_types = (str, unicode, int, long, float, bool)

0 commit comments

Comments
 (0)