Skip to content

Commit a34927d

Browse files
committed
assert the required bits are supplied
1 parent 6a57a9d commit a34927d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mig/shared/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,10 @@ def force_utf8(val, highlight=''):
527527

528528

529529
def _walk_and_convert_recursive(input_obj, highlight='', _is_primitive=None, _force_primitive=None, _force_recursive=None):
530+
assert _is_primitive is not None
531+
assert _force_primitive is not None
532+
assert _force_recursive is not None
533+
530534
thetype = type(input_obj)
531535
if issubclass(thetype, dict):
532536
return {_force_recursive(i, highlight): _force_recursive(j, highlight) for (i, j) in

0 commit comments

Comments
 (0)