weldx.util.deprecated#

weldx.util.deprecated(since=None, removed=None, message=None)#

Mark a functions as deprecated.

This decorator emits a warning when the function is used.

Parameters:
  • since (Optional[str]) – The version that marked the function as deprecated

  • removed (Optional[str]) – The version that will remove the function

  • message (Optional[str]) – Additional information that should be added to the warning

Returns:

Wrapped function

Return type:

Callable

Notes

Original source: https://stackoverflow.com/a/30253848/6700329