forked from VimPlug/jedi
Merge pull request #95 from dbrgn/docs
Proper Sphinx deprecation warnings and cross references
This commit is contained in:
@@ -5,7 +5,7 @@ The plugin API
|
|||||||
|
|
||||||
If you want to set up an editor/IDE-plugin with **Jedi**, you first need to
|
If you want to set up an editor/IDE-plugin with **Jedi**, you first need to
|
||||||
``import jedi``. You then have direct access to the :class:`.Script`,
|
``import jedi``. You then have direct access to the :class:`.Script`,
|
||||||
:class:`.NotFoundError` and :func:`.set_debug_function` objects.
|
:exc:`.NotFoundError` and :func:`.set_debug_function` objects.
|
||||||
|
|
||||||
|
|
||||||
API documentation
|
API documentation
|
||||||
|
|||||||
@@ -93,8 +93,8 @@ class BaseDefinition(object):
|
|||||||
@property
|
@property
|
||||||
def line_nr(self):
|
def line_nr(self):
|
||||||
"""
|
"""
|
||||||
.. warning:: Deprecated! It's just here for backwards compatibility,
|
.. deprecated:: 0.5.0
|
||||||
use `api_classes.BaseDefinition.line` instead.
|
Use :attr:`.line` instead.
|
||||||
.. todo:: Remove!
|
.. todo:: Remove!
|
||||||
"""
|
"""
|
||||||
warnings.warn("Use line instead.", DeprecationWarning)
|
warnings.warn("Use line instead.", DeprecationWarning)
|
||||||
|
|||||||
Reference in New Issue
Block a user