mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-01 13:43:45 +08:00
fix recursion issue with compiled classes
This commit is contained in:
1 parent
bd239446f5
commit
e4f3f5bea2
1 file changed
+3
-1
@@ -146,7 +146,9 @@ class Evaluator(object):
|
||||
if not (scope != non_flow and scope.isinstance(pr.Class)
|
||||
or scope.isinstance(pr.Flow)
|
||||
or scope.isinstance(er.Instance)
|
||||
and non_flow.isinstance(er.Function)):
|
||||
and non_flow.isinstance(er.Function)
|
||||
or isinstance(scope, compiled.PyObject)
|
||||
and scope.type() == 'class' and in_func_scope != scope):
|
||||
try:
|
||||
if isinstance(scope, er.Instance):
|
||||
for g in scope.scope_generator():
|
||||
|
||||
Reference in new issue
Block a user