1
0
forked from VimPlug/jedi

Disable some features for big annoying libraries like pandas, tensorflow, see #520

This commit is contained in:
Dave Halter
2020-01-04 02:39:36 +01:00
parent 441ede2c7f
commit 47d3aa73dc
4 changed files with 17 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
from jedi.parser_utils import get_flow_branch_keyword, is_scope, get_parent_scope
from jedi.inference.recursion import execution_allowed
from jedi.inference.helpers import is_big_annoying_library
class Status(object):
@@ -42,6 +43,9 @@ def _get_flow_scopes(node):
def reachability_check(context, value_scope, node, origin_scope=None):
if is_big_annoying_library(context):
return UNSURE
first_flow_scope = get_parent_scope(node, include_flows=True)
if origin_scope is not None:
origin_flow_scopes = list(_get_flow_scopes(origin_scope))