Skip to content
Snippets Groups Projects
Commit 43f58382 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

v2.26.4

parent c64b731c
No related branches found
Tags 2.26.4
No related merge requests found
Pipeline #64187 passed with stages
in 2 minutes and 11 seconds
...@@ -88,7 +88,7 @@ def run_when_generator_completes(gen: tp.Generator, call_on_done: tp.Callable, ...@@ -88,7 +88,7 @@ def run_when_generator_completes(gen: tp.Generator, call_on_done: tp.Callable,
:returns: generator :returns: generator
""" """
class Inner(RunActionAfterGeneratorCompletes): class Inner(RunActionAfterGeneratorCompletes):
def action_to_run(self, *args, **kwargs): def action_to_run(self, *t_args, **t_kwargs):
call_on_done(*args, **kwargs) call_on_done(*t_args, **t_kwargs)
return Inner(gen, *args, **kwargs) return Inner(gen, *args, **kwargs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment