forked from VimPlug/jedi
Get rid of the node_is_value parameter
This commit is contained in:
@@ -289,13 +289,10 @@ def _create(inference_state, access_handle, parent_context, *args):
|
||||
return ValueSet({compiled_object})
|
||||
module_context = parent_context.get_root_context()
|
||||
|
||||
tree_values = ValueSet({
|
||||
module_context.create_context(
|
||||
tree_node,
|
||||
node_is_value=True,
|
||||
)._value
|
||||
# TODO private access!
|
||||
})
|
||||
if tree_node is module_node:
|
||||
tree_values = ValueSet({module_context.get_value()})
|
||||
else:
|
||||
tree_values = ValueSet({module_context.create_value(tree_node)})
|
||||
if tree_node.type == 'classdef':
|
||||
if not access_handle.is_class():
|
||||
# Is an instance, not a class.
|
||||
|
||||
Reference in New Issue
Block a user