mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 15:51:51 +08:00
fix cache memoization
This commit is contained in:
@@ -28,7 +28,7 @@ def memoize_default(default, evaluator_is_first_arg=False, second_arg_is_evaluat
|
|||||||
memo = {}
|
memo = {}
|
||||||
cache[function] = memo
|
cache[function] = memo
|
||||||
|
|
||||||
key = (args, frozenset(kwargs.items()))
|
key = (obj, args, frozenset(kwargs.items()))
|
||||||
if key in memo:
|
if key in memo:
|
||||||
return memo[key]
|
return memo[key]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user