deprecation_warning

deprecation_warning#

deprecation_warning(msg: str) None[source]#

Create a depreciation warning.

Parameters:

msg (str) – Deprecation warning

Example

>>> def deprecated_fct():
>>>     deprecation_warning("This function is deprecated. Use this other function instead.")
>>>
>>> deprecated_fct()
DeprecationWarning: This function is deprecated. Use this other function instead.