1
0
forked from VimPlug/jedi

Fix a small issue surrounding old school classes in Python 2.

This commit is contained in:
Dave Halter
2017-09-17 02:09:39 +02:00
parent 8fcb468539
commit 4b4b2c2122

View File

@@ -218,7 +218,7 @@ def _create(evaluator, obj, parent_context=None, *args):
node_is_object=True
)
if tree_node.type == 'classdef':
if not isinstance(obj, type):
if not inspect.isclass(obj):
# Is an instance, not a class.
tree_context, = tree_context.execute_evaluated()