(*args, **kwargs)
| 36 | |
| 37 | @functools.wraps(func) |
| 38 | def Wrapper(*args, **kwargs): |
| 39 | warnings.warn_explicit( |
| 40 | f'{func.__name__}() is deprecated: {message}', |
| 41 | category=DeprecationWarning, |
| 42 | filename=func.__code__.co_filename, |
| 43 | lineno=func.__code__.co_firstlineno + 1, |
| 44 | ) |
| 45 | return func(*args, **kwargs) |
| 46 | |
| 47 | deprecation_message = '\nDEPRECATED: ' + message |
| 48 | Wrapper.__doc__ += deprecation_message |
nothing calls this directly
no test coverage detected