diff --git a/jedi/api/__init__.py b/jedi/api/__init__.py index 48e8a56d..c637231a 100644 --- a/jedi/api/__init__.py +++ b/jedi/api/__init__.py @@ -345,7 +345,7 @@ class Script(object): Use :attr:`.call_signatures` instead. .. todo:: Remove! """ - warnings.warn("Use line instead.", DeprecationWarning) + warnings.warn("Use call_signatures instead.", DeprecationWarning) sig = self.call_signatures() return sig[0] if sig else None diff --git a/jedi/api/classes.py b/jedi/api/classes.py index c620a123..c78bee79 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -245,7 +245,7 @@ class BaseDefinition(object): Use :meth:`.docstring` instead. .. todo:: Remove! """ - warnings.warn("Use documentation() instead.", DeprecationWarning) + warnings.warn("Use docstring() instead.", DeprecationWarning) return self.docstring() @property @@ -255,7 +255,7 @@ class BaseDefinition(object): Use :meth:`.docstring` instead. .. todo:: Remove! """ - warnings.warn("Use documentation() instead.", DeprecationWarning) + warnings.warn("Use docstring() instead.", DeprecationWarning) return self.docstring(raw=True) @property @@ -463,7 +463,7 @@ class Completion(BaseDefinition): :param fast: Don't follow imports that are only one level deep like ``import foo``, but follow ``from foo import bar``. This makes sense for speed reasons. Completing `import a` is slow if you use - the ``foo.documentation(fast=False)`` on every object, because it + the ``foo.docstring(fast=False)`` on every object, because it parses all libraries starting with ``a``. """ definition = self._definition