smpl_doc.doc.deprecated
- smpl_doc.doc.deprecated(version=None, deprecated_in=None, removed_in=None, reason=None, details=None)[source]
Decorator to mark a function as deprecated.
Parameters
- version
str
Version of the package when the function was deprecated.
- deprecated_in
str
Version of the package when the function was deprecated.
- removed_in
str
Version of the package when the function will be removed.
- reason
str
Reason for deprecation.
- details
str
Details about the deprecation.
Examples
>>> @deprecated('0.0.0',removed_in='0.2.0') ... def ho(): ... '''Ho''' ... print(ho.__doc__) >>> ho() Ho .. deprecated:: 0.0.0 This will be removed in 0.2.0.
- version