debian.deprecation module

Utility module to deprecate features

debian.deprecation.function_deprecated_by(func: Callable[[], Any]) → Callable[[], Any]

Return a function that warns it is deprecated by another function.

Returns a new function that warns it is deprecated by function func, then acts as a pass-through wrapper for func.