| Conditions | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | """ |
||
| 8 | 1 | def wraps(wrapped): |
|
| 9 | """ |
||
| 10 | This has the same functionality as single arity functools.wraps but deals with the case |
||
| 11 | where the wrapping object may not have __dict__ |
||
| 12 | """ |
||
| 13 | |||
| 14 | 1 | def _wrapper(wrapping): |
|
| 15 | 1 | return functools_wraps( |
|
| 16 | wrapped, |
||
| 17 | updated=WRAPPER_UPDATES if hasattr(wrapping, "__dict__") else tuple(), |
||
| 18 | )(wrapping) |
||
| 19 | |||
| 20 | return _wrapper |
||
| 21 |