From 5dab97a303aab5e87cb78a663b77dbf3ac6e346a Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 7 Jun 2018 21:01:41 +0200 Subject: [PATCH] Add an error message, see also #1139. --- jedi/api/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/api/classes.py b/jedi/api/classes.py index 3a9631e1..cfcbf8db 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -342,7 +342,7 @@ class BaseDefinition(object): followed = list(self._name.infer()) if not followed or not hasattr(followed[0], 'py__call__'): - raise AttributeError() + raise AttributeError('There are no params defined on this.') context = followed[0] # only check the first one. return [Definition(self._evaluator, n) for n in get_param_names(context)]