diff --git a/satella/coding/generators.py b/satella/coding/generators.py index 2e96f53c98c97f6ca50ac30c2a7abdf4c5ff6b22..b95ba6ec72aa0cf589d1befbb7f720a4d61b6286 100644 --- a/satella/coding/generators.py +++ b/satella/coding/generators.py @@ -88,7 +88,7 @@ def run_when_generator_completes(gen: tp.Generator, call_on_done: tp.Callable, :returns: generator """ class Inner(RunActionAfterGeneratorCompletes): - def action_to_run(self, *args, **kwargs): - call_on_done(*args, **kwargs) + def action_to_run(self, *t_args, **t_kwargs): + call_on_done(*t_args, **t_kwargs) return Inner(gen, *args, **kwargs)