mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-17 13:59:37 +08:00
more of CachedMetaClass in evaluate
This commit is contained in:
+2
-2
@@ -439,8 +439,6 @@ class Execution(Executable):
|
|||||||
transfer parameters. This is even more complicated, because there may be
|
transfer parameters. This is even more complicated, because there may be
|
||||||
multiple call to functions and recursion has to be avoided.
|
multiple call to functions and recursion has to be avoided.
|
||||||
"""
|
"""
|
||||||
cache = {}
|
|
||||||
|
|
||||||
@memoize_default(default=[])
|
@memoize_default(default=[])
|
||||||
def get_return_types(self, evaluate_generator=False):
|
def get_return_types(self, evaluate_generator=False):
|
||||||
"""
|
"""
|
||||||
@@ -687,6 +685,7 @@ class Execution(Executable):
|
|||||||
|
|
||||||
|
|
||||||
class Generator(parsing.Base):
|
class Generator(parsing.Base):
|
||||||
|
__metaclass__ = CachedMetaClass
|
||||||
def __init__(self, func, var_args):
|
def __init__(self, func, var_args):
|
||||||
super(Generator, self).__init__()
|
super(Generator, self).__init__()
|
||||||
self.func = func
|
self.func = func
|
||||||
@@ -729,6 +728,7 @@ class Array(parsing.Base):
|
|||||||
Used as a mirror to parsing.Array, if needed. It defines some getter
|
Used as a mirror to parsing.Array, if needed. It defines some getter
|
||||||
methods which are important in this module.
|
methods which are important in this module.
|
||||||
"""
|
"""
|
||||||
|
__metaclass__ = CachedMetaClass
|
||||||
def __init__(self, array):
|
def __init__(self, array):
|
||||||
self._array = array
|
self._array = array
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user