German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.utils.add_deprecation_to_docstring

add_deprecation_to_docstring(func, msg, *, since, pending)[Quellcode]

Dynamically insert the deprecation message into func’s docstring.

Parameter
  • func (Callable) – The function to modify.

  • msg (str) – The full deprecation message.

  • since (Optional[str]) – The version the deprecation started at.

  • pending (bool) – Is the deprecation still pending?