Wrapper around the completion methods for the benefit of emacs.
(self, text: str)
| 2175 | ] |
| 2176 | |
| 2177 | def all_completions(self, text: str) -> list[str]: |
| 2178 | """ |
| 2179 | Wrapper around the completion methods for the benefit of emacs. |
| 2180 | """ |
| 2181 | prefix = text.rpartition('.')[0] |
| 2182 | with provisionalcompleter(): |
| 2183 | return ['.'.join([prefix, c.text]) if prefix and self.use_jedi else c.text |
| 2184 | for c in self.completions(text, len(text))] |
| 2185 | |
| 2186 | return self.complete(text)[1] |
| 2187 | |
| 2188 | def _clean_glob(self, text:str): |
| 2189 | return self.glob("%s*" % text) |