30 lines
821 B
Plaintext
30 lines
821 B
Plaintext
---
|
||
title: deprecate_function (v0.26)
|
||
description: API reference for qiskit.utils.deprecate_function in qiskit v0.26
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.utils.deprecate_function
|
||
---
|
||
|
||
<span id="qiskit-utils-deprecate-function" />
|
||
|
||
# qiskit.utils.deprecate\_function
|
||
|
||
<Function id="qiskit.utils.deprecate_function" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/utils/deprecation.py" signature="deprecate_function(msg, stacklevel=2)">
|
||
Emit a warning prior to calling decorated function.
|
||
|
||
**Parameters**
|
||
|
||
* **msg** (*str*) – Warning message to emit.
|
||
* **stacklevel** (*int*) – The warning stackevel to use, defaults to 2.
|
||
|
||
**Returns**
|
||
|
||
The decorated, deprecated callable.
|
||
|
||
**Return type**
|
||
|
||
Callable
|
||
</Function>
|
||
|