Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
lesteve committed Mar 18, 2021
1 parent 87dd2ca commit 559e228
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion joblib/func_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ def filter_args(func, ignore_lst, args=(), kwargs=dict()):
# we need to add it back:
args = [func.__self__, ] + args
# func is an instance method, inspect.signature(func) does not
# include self, we need to fetch it from the class method
# include self, we need to fetch it from the class method, i.e
# func.__func__
class_method_sig = inspect.signature(func.__func__)
self_name = next(iter(class_method_sig.parameters))
arg_names = [self_name] + arg_names
Expand Down

0 comments on commit 559e228

Please sign in to comment.