Wrapper around the completion methods for the benefit of emacs.
(self, text)
| 1140 | ] |
| 1141 | |
| 1142 | def all_completions(self, text) -> List[str]: |
| 1143 | """ |
| 1144 | Wrapper around the completion methods for the benefit of emacs. |
| 1145 | """ |
| 1146 | prefix = text.rpartition('.')[0] |
| 1147 | with provisionalcompleter(): |
| 1148 | return ['.'.join([prefix, c.text]) if prefix and self.use_jedi else c.text |
| 1149 | for c in self.completions(text, len(text))] |
| 1150 | |
| 1151 | return self.complete(text)[1] |
| 1152 | |
| 1153 | def _clean_glob(self, text): |
| 1154 | return self.glob("%s*" % text) |