Rename the internal function

After removing the assert, the old name was a bit confusing.
This commit is contained in:
tcely 2025-02-10 22:57:09 -05:00 committed by GitHub
parent 8d89cc01f9
commit 0850470867
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -206,11 +206,11 @@ def normalize_codec(codec_str):
def list_of_dictionaries(arg_list, arg_function=lambda x: x):
assert callable(arg_function)
if isinstance(arg_list, list):
def _assert_and_call(arg_dict):
def _call_func_with_dict(arg_dict):
if isinstance(arg_dict, dict):
return arg_function(arg_dict)
return arg_dict
return (True, list(map(_assert_and_call, arg_list)),)
return (True, list(map(_call_func_with_dict, arg_list)),)
return (False, arg_list,)