Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | """ |
||
2 | Exports some modified versions of functions from functools |
||
3 | """ |
||
4 | |||
5 | 1 | from functools import wraps as functools_wraps, WRAPPER_UPDATES |
|
6 | |||
7 | |||
8 | 1 | def wraps(wrapped): |
|
9 | """ |
||
10 | This has the same functionality as single arity functools.wraps but deals with the case |
||
11 | where wrapped may not have __dict__ |
||
12 | """ |
||
13 | return functools_wraps(wrapped, updated=tuple()) |
||
14 |