From 557023e20ea4cb1cc084f1a65c2652e5b4ceed13 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Fri, 16 Feb 2024 17:56:46 +0100 Subject: [PATCH] cleanup --- modopt/base/types.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/modopt/base/types.py b/modopt/base/types.py index e9212e12..16e06f15 100644 --- a/modopt/base/types.py +++ b/modopt/base/types.py @@ -12,7 +12,7 @@ from modopt.interface.errors import warn -def check_callable(input_obj, add_agrs=True): +def check_callable(input_obj): """Check input object is callable. This method checks if the input operator is a callable funciton and @@ -23,23 +23,11 @@ def check_callable(input_obj, add_agrs=True): ---------- input_obj : callable Callable function - add_agrs : bool, optional - Option to add support for agrs and kwargs (default is ``True``) - - Returns - ------- - function - Function wrapped by ``add_args_kwargs`` Raises ------ TypeError For invalid input type - - See Also - -------- - modopt.base.wrappers.add_args_kwargs : wrapper used - """ if not callable(input_obj): raise TypeError('The input object must be a callable function.')