mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-10 06:15:49 +08:00
Avoid dynamic params search for Interpreter, fixes #1899
This commit is contained in:
1 parent
01d8da8f73
commit
1947e7dd56
3 files changed
+12
-3
No files matched your search
@@ -66,11 +66,11 @@ def dynamic_param_lookup(function_value, param_index):
|
||||
have to look for all calls to ``func`` to find out what ``foo`` possibly
|
||||
is.
|
||||
"""
|
||||
funcdef = function_value.tree_node
|
||||
|
||||
if not settings.dynamic_params:
|
||||
if not function_value.inference_state.do_dynamic_params_search:
|
||||
return NO_VALUES
|
||||
|
||||
funcdef = function_value.tree_node
|
||||
|
||||
path = function_value.get_root_context().py__file__()
|
||||
if path is not None and is_stdlib_path(path):
|
||||
# We don't want to search for references in the stdlib. Usually people
|
||||
|
||||
Reference in new issue
Block a user