Deprecated Library
A Python library providing a `@deprecated` decorator to mark functions, classes, or methods as deprecated, encouraging developers to transition to newer APIs. Current version: 1.3.1. Release cadence: Regular updates with new features and fixes.
Warnings
- breaking Deprecated Library version 1.3.0 introduced support for wrapt 2.x, which may cause compatibility issues with previous versions.
- deprecated Python 2.7 support is deprecated and will be removed in future releases.
- gotcha Using the `@deprecated` decorator without specifying a version may lead to confusion about the deprecation status.
Install
-
pip install deprecated
Imports
- deprecated
import deprecated
Quickstart
import deprecated
@deprecated
def old_function():
pass
old_function()