Return a decorator that marks a property as deprecated. To deprecate a regular callable or class, see deprecated
.
Parameters | version | The version in which the callable will be marked as having been deprecated. The decorated function will be annotated with this version, having it set as its deprecatedVersion attribute. (type: incremental.Version ) |
| version | the version that the callable was deprecated in. (type: incremental.Version ) |
| replacement | what should be used in place of the callable. Either pass in a string, which will be inserted into the warning message, or a callable, which will be expanded to its full import path. (type: str or callable) |
Returns | A new property with deprecated setter and getter. (type: property ) |
Present Since | 16.1.0 |