mirror of
https://github.com/davidhalter/jedi.git
synced 2026-06-18 13:15:52 +08:00
changed warnings to sphinx doc style
This commit is contained in:
+4
-2
@@ -91,8 +91,10 @@ class BaseDefinition(object):
|
||||
|
||||
@property
|
||||
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.")
|
||||
return self.line
|
||||
|
||||
Reference in New Issue
Block a user