Skip to content

Commit 2cd30c2

Browse files
committed
fix: add explicit strict flag to zip in arg mapping
1 parent 38b0750 commit 2cd30c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cachier/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _convert_args_kwargs(func, _is_method: bool, args: tuple, kwds: dict) -> dic
125125

126126
# Map as many args as possible to regular parameters
127127
num_regular = len(params_to_use)
128-
args_as_kw = dict(zip(params_to_use, args_to_map[:num_regular]))
128+
args_as_kw = dict(zip(params_to_use, args_to_map[:num_regular], strict=False))
129129

130130
# Handle variadic positional arguments
131131
# Store them with indexed keys like __varargs_0__, __varargs_1__, etc.

0 commit comments

Comments
 (0)