(getter, *args, **kwargs)
| 2704 | |
| 2705 | # The new custom_getter should call the old one |
| 2706 | def wrapped_custom_getter(getter, *args, **kwargs): |
| 2707 | # Call: |
| 2708 | # custom_getter( |
| 2709 | # lambda: old_getter(true_getter, ...), *args, **kwargs) |
| 2710 | # which means custom_getter will call old_getter, which |
| 2711 | # will call the true_getter, perform any intermediate |
| 2712 | # processing, and return the results to the current |
| 2713 | # getter, which will also perform additional processing. |
| 2714 | return custom_getter(functools.partial(old_getter, getter), *args, **kwargs) |
| 2715 | |
| 2716 | return wrapped_custom_getter |
| 2717 |
nothing calls this directly
no test coverage detected