Show More
@@ -185,11 +185,11 b" def provisionalcompleter(action='ignore'):" | |||||
185 | """ |
|
185 | """ | |
186 |
|
186 | |||
187 |
|
187 | |||
188 |
This conte |
|
188 | This context manager has to be used in any place where unstable completer | |
189 | behavior and API may be called. |
|
189 | behavior and API may be called. | |
190 |
|
190 | |||
191 | >>> with provisionalcompleter(): |
|
191 | >>> with provisionalcompleter(): | |
192 | ... completer.do_experimetal_things() # works |
|
192 | ... completer.do_experimental_things() # works | |
193 |
|
193 | |||
194 | >>> completer.do_experimental_things() # raises. |
|
194 | >>> completer.do_experimental_things() # raises. | |
195 |
|
195 | |||
@@ -198,11 +198,10 b" def provisionalcompleter(action='ignore'):" | |||||
198 | By using this context manager you agree that the API in use may change |
|
198 | By using this context manager you agree that the API in use may change | |
199 | without warning, and that you won't complain if they do so. |
|
199 | without warning, and that you won't complain if they do so. | |
200 |
|
200 | |||
201 | You also understand that if the API is not to you liking you should report |
|
201 | You also understand that, if the API is not to your liking, you should report | |
202 |
a bug to explain your use case upstream |
|
202 | a bug to explain your use case upstream. | |
203 | credibility if you complain after the API is make stable. |
|
|||
204 |
|
203 | |||
205 |
We'll be happy to get your feedback |
|
204 | We'll be happy to get your feedback, feature requests, and improvements on | |
206 |
any of the unstable APIs |
|
205 | any of the unstable APIs! | |
207 | """ |
|
206 | """ | |
208 | with warnings.catch_warnings(): |
|
207 | with warnings.catch_warnings(): | |
@@ -1138,7 +1137,7 b' class IPCompleter(Completer):' | |||||
1138 |
|
1137 | |||
1139 | def all_completions(self, text) -> List[str]: |
|
1138 | def all_completions(self, text) -> List[str]: | |
1140 | """ |
|
1139 | """ | |
1141 |
Wrapper around the completion |
|
1140 | Wrapper around the completion methods for the benefit of emacs. | |
1142 | """ |
|
1141 | """ | |
1143 | prefix = text[:text.rfind(".") + 1] |
|
1142 | prefix = text[:text.rfind(".") + 1] | |
1144 | with provisionalcompleter(): |
|
1143 | with provisionalcompleter(): |
General Comments 0
You need to be logged in to leave comments.
Login now