forked from VimPlug/jedi
changed warnings to sphinx doc style
This commit is contained in:
@@ -91,8 +91,10 @@ class BaseDefinition(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def line_nr(self):
|
def line_nr(self):
|
||||||
""" Use line instead!
|
"""
|
||||||
TODO remove, deprecated! it's just here for backwards compatibility
|
.. warning:: Deprecated! It's just here for backwards compatibility,
|
||||||
|
use line instead.
|
||||||
|
.. todo:: Remove!
|
||||||
"""
|
"""
|
||||||
raise DeprecationWarning("Use line instead.")
|
raise DeprecationWarning("Use line instead.")
|
||||||
return self.line
|
return self.line
|
||||||
|
|||||||
Reference in New Issue
Block a user