1
0
forked from VimPlug/jedi

Avoid dynamic params search for Interpreter, fixes #1899

This commit is contained in:
Dave Halter
2023-07-27 13:48:53 +02:00
parent 01d8da8f73
commit 1947e7dd56
3 changed files with 12 additions and 3 deletions

View File

@@ -742,6 +742,14 @@ class Interpreter(Script):
self.namespaces = namespaces
self._inference_state.allow_descriptor_getattr = settings.instance_allow_descriptor_getattr
# Dynamic params search is important when we work on functions that are
# called by other pieces of code. However for interpreter completions
# this is not important at all, because the current code is always new
# and will never be called by something.
# Also sometimes this logic goes a bit too far like in
# https://github.com/ipython/ipython/issues/13866, where it takes
# seconds to do a simple completion.
self._inference_state.do_dynamic_params_search = False
@cache.memoize_method
def _get_module_context(self):