diff --git a/eli5/base_utils.py b/eli5/base_utils.py index f1081c3b..ba073ad4 100644 --- a/eli5/base_utils.py +++ b/eli5/base_utils.py @@ -25,7 +25,7 @@ def attrs(class_): if method in class_.__dict__: # Allow to redefine a special method (or else attr.s will do it) attrs_kwargs[kw_name] = False - init_args = inspect.getargspec(class_.__init__) + init_args = inspect.getfullargspec(class_.__init__) defaults_shift = len(init_args.args) - len(init_args.defaults or []) - 1 these = {} for idx, arg in enumerate(init_args.args[1:]):