Skip to content

Commit 6e3d2ef

Browse files
committed
Fix: Properly handle listification
1. Lists as value in short form of map will now be correctly handled during listification. 2. Bump version
1 parent 9460bc1 commit 6e3d2ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sbpack/lib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def normalize_to_list(obj: Union[list, dict], key_field: str, value_field: str):
6161
elif isinstance(obj, dict):
6262
map_list = []
6363
for k, v in obj.items():
64-
if isinstance(v, str):
64+
if not isinstance(v, dict):
6565
if value_field is None:
6666
raise RuntimeError(f"Expecting a dict here, got {v}")
6767
v = {value_field: v}

sbpack/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2020.06.18"
1+
__version__ = "2020.09.04"

0 commit comments

Comments
 (0)