Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
hongquan committed Jul 15, 2024
1 parent 432da73 commit b82c7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jedi/api/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def complete(self):
return (
# Removing duplicates mostly to remove False/True/None duplicates.
_remove_duplicates(prefixed_completions, completions)
+ sorted(completions, key=lambda x: (not x.name.startswith(self._like_name),
+ sorted(completions, key=lambda x: (not x.name.startswith(self._like_name),
x.name.startswith('__'),
x.name.startswith('_'),
x.name.lower()))
Expand Down

0 comments on commit b82c7df

Please sign in to comment.