(wrapped, instance, args, kwargs)
| 38 | """ |
| 39 | @wrapt.decorator |
| 40 | def func_wrapper(wrapped, instance, args, kwargs): |
| 41 | desired_units = from_args(wrapped, "units", *args, **kwargs)["units"] |
| 42 | u_cleaned = dealias_and_clean_unit(desired_units) |
| 43 | check_units(u_cleaned, unit_type) |
| 44 | |
| 45 | # Unit conversion done here |
| 46 | return do_conversion(wrapped(*args, **kwargs), unit_type, |
| 47 | alg_unit, desired_units) |
| 48 | |
| 49 | return func_wrapper |
| 50 |
nothing calls this directly
no test coverage detected