qiskit-documentation/docs/api/qiskit/0.43/qiskit.utils.add_deprecatio...

24 lines
936 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: add_deprecation_to_docstring
description: API reference for qiskit.utils.add_deprecation_to_docstring
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.utils.add_deprecation_to_docstring
---
<span id="qiskit-utils-add-deprecation-to-docstring" />
# qiskit.utils.add\_deprecation\_to\_docstring
<Function id="qiskit.utils.add_deprecation_to_docstring" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/utils/deprecation.py" signature="add_deprecation_to_docstring(func, msg, *, since, pending)">
Dynamically insert the deprecation message into `func`s docstring.
**Parameters**
* **func** (*Callable*) The function to modify.
* **msg** (*str*) The full deprecation message.
* **since** (*str | None*) The version the deprecation started at.
* **pending** (*bool*) Is the deprecation still pending?
</Function>