mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-06 09:18:49 +08:00
fix cache memoization
This commit is contained in:
1 parent
4cf5d56b64
commit
b768e214eb
1 file changed
+1
-1
@@ -28,7 +28,7 @@ def memoize_default(default, evaluator_is_first_arg=False, second_arg_is_evaluat
|
||||
memo = {}
|
||||
cache[function] = memo
|
||||
|
||||
key = (args, frozenset(kwargs.items()))
|
||||
key = (obj, args, frozenset(kwargs.items()))
|
||||
if key in memo:
|
||||
return memo[key]
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user