forked from VimPlug/jedi
resolved merge conflict
This commit is contained in:
@@ -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)
|
||||||
@@ -102,7 +102,7 @@ class BaseDefinition(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def line(self):
|
def line(self):
|
||||||
""" The line where the definition occurs (starting with 1). """
|
"""The line where the definition occurs (starting with 1)."""
|
||||||
return self.start_pos[0]
|
return self.start_pos[0]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -112,7 +112,7 @@ class BaseDefinition(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def doc(self):
|
def doc(self):
|
||||||
""" Return a document string for this completion object. """
|
"""Return a document string for this completion object."""
|
||||||
try:
|
try:
|
||||||
return self.definition.doc
|
return self.definition.doc
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|||||||
Reference in New Issue
Block a user