Return a decorator that marks callables as deprecated. To deprecate a property, see deprecatedProperty.

ParametersversionThe 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)
versionthe version that the callable was deprecated in. (type: incremental.Version)
replacementwhat 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)
Function deprecationDecorator Decorator that marks function as deprecated.
def deprecationDecorator(function): (source)

Decorator that marks function as deprecated.

API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.