1
0
forked from VimPlug/jedi

testing should now work without duplicates

This commit is contained in:
David Halter
2012-09-22 16:36:39 +02:00
parent c7e8278ca4
commit 5982c7c93d
3 changed files with 10 additions and 3 deletions

View File

@@ -449,3 +449,10 @@ class RelatedName(BaseOutput):
@property
def description(self):
return "%s@%s,%s" % (self.text, self.start_pos[0], self.start_pos[1])
def __eq__(self, other):
return self.start_pos == other.start_pos \
and self.module_path == other.module_path
def __hash__(self):
return hash((self.start_pos, self.module_path))