deprecated

scheduler.base.scheduler.deprecated(fields: List[str]) Callable[[Callable[[...], Any]], Callable[[...], Any]][source]

Decorator for marking specified function arguments as deprecated.

Parameters:
fieldsList[str]

A list of strings representing the names of the function arguments that are deprecated.

Examples

@deprecated(["old_arg"])
def some_function(new_arg, old_arg=None):
    pass

Calling some_function(new_arg=5, old_arg=3) generates a deprecation warning for using ‘old_arg’.