mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-11 09:08:43 +08:00
change default sorting of related names to a more natural
This commit is contained in:
+1
-2
@@ -334,8 +334,7 @@ class Script(object):
|
|||||||
else:
|
else:
|
||||||
names.append(api_classes.RelatedName(d.names[-1], d))
|
names.append(api_classes.RelatedName(d.names[-1], d))
|
||||||
|
|
||||||
return sorted(set(names), key=lambda x: (x.module_path, x.start_pos),
|
return sorted(set(names), key=lambda x: (x.module_path, x.start_pos))
|
||||||
reverse=True)
|
|
||||||
|
|
||||||
def get_in_function_call(self):
|
def get_in_function_call(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user