Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Feb 16, 2024
1 parent 1bf9617 commit 557023e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions modopt/base/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.')
Expand Down

0 comments on commit 557023e

Please sign in to comment.