mirror of
https://github.com/davidhalter/jedi.git
synced 2026-08-18 04:57:58 +08:00
Fix an issue in the API that was created by creating set types.
This commit is contained in:
@@ -365,7 +365,10 @@ class Script(object):
|
|||||||
definitions = resolve_import_paths(definitions)
|
definitions = resolve_import_paths(definitions)
|
||||||
names = [s.name for s in definitions]
|
names = [s.name for s in definitions]
|
||||||
defs = [classes.Definition(self._evaluator, name) for name in names]
|
defs = [classes.Definition(self._evaluator, name) for name in names]
|
||||||
return helpers.sorted_definitions(defs)
|
# The additional set here allows the definitions to become unique in an
|
||||||
|
# API sense. In the internals we want to separate more things than in
|
||||||
|
# the API.
|
||||||
|
return helpers.sorted_definitions(set(defs))
|
||||||
|
|
||||||
def goto_assignments(self):
|
def goto_assignments(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user