(mod, fn, cast_fn, handle,
try_caching=False, verbose=False)
| 53 | return output |
| 54 | |
| 55 | def cached_cast(mod, fn, cast_fn, handle, |
| 56 | try_caching=False, verbose=False): |
| 57 | if not utils.has_func(mod, fn): |
| 58 | return |
| 59 | |
| 60 | orig_fn = utils.get_func(mod, fn) |
| 61 | cast_fn = utils.verbosify(cast_fn, fn, verbose) |
| 62 | wrapper = make_cast_wrapper(orig_fn, cast_fn, handle, try_caching) |
| 63 | utils.set_func_save(handle, mod, fn, wrapper) |
| 64 |
nothing calls this directly
no test coverage detected