From e4bbe04328ad2d9c59b9986ff3f5fef959b574e6 2021-11-15 23:14:49 From: Matthias Bussonnier Date: 2021-11-15 23:14:49 Subject: [PATCH] Merge pull request #13286 from meeseeksmachine/auto-backport-of-pr-13284-on-7.x Backport PR #13284 on branch 7.x (Move dict keys completions higher.) --- diff --git a/IPython/core/completer.py b/IPython/core/completer.py index b5c54e4..c493fa3 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -1143,18 +1143,18 @@ class IPCompleter(Completer): if self.use_jedi: return [ *self.custom_matchers, + self.dict_key_matches, self.file_matches, self.magic_matches, - self.dict_key_matches, ] else: return [ *self.custom_matchers, + self.dict_key_matches, self.python_matches, self.file_matches, self.magic_matches, self.python_func_kw_matches, - self.dict_key_matches, ] def all_completions(self, text) -> List[str]: