mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
properties work now also with initialization values of classes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import parsing
|
||||
import debug
|
||||
|
||||
class RecursionDecorator(object):
|
||||
""" A decorator to detect recursions in statements """
|
||||
@@ -14,6 +15,7 @@ class RecursionDecorator(object):
|
||||
|
||||
r = RecursionNode(stmt, self.current)
|
||||
if self.check_recursion(r):
|
||||
debug.warning('catched recursion', stmt, args, kwargs)
|
||||
return []
|
||||
parent, self.current = self.current, r
|
||||
result = self.func(stmt, *args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user