mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 17:58:35 +08:00
Usage is now a subclass of Definition, #395
This commit is contained in:
+3
-2
@@ -6,10 +6,11 @@ from jedi.evaluate import imports
|
|||||||
from jedi.evaluate import helpers
|
from jedi.evaluate import helpers
|
||||||
|
|
||||||
|
|
||||||
class Usage(classes.BaseDefinition):
|
class Usage(classes.Definition):
|
||||||
"""TODO: document this"""
|
"""TODO: document this"""
|
||||||
def __init__(self, evaluator, name_part, scope):
|
def __init__(self, evaluator, name_part, scope):
|
||||||
super(Usage, self).__init__(evaluator, scope, name_part.start_pos)
|
super(Usage, self).__init__(evaluator, scope)
|
||||||
|
self._start_pos = name_part.start_pos
|
||||||
self.text = unicode(name_part)
|
self.text = unicode(name_part)
|
||||||
self.end_pos = name_part.end_pos
|
self.end_pos = name_part.end_pos
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user