Skip to content

Commit

Permalink
fix(build): lru_cache: TypeError: Expected maxsize to be an integer o…
Browse files Browse the repository at this point in the history
…r None
  • Loading branch information
elhoangvu committed Apr 15, 2024
1 parent 5e6a39a commit 0398889
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dictrule/built_in_rules/eval_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ def eval(

eval_rule = self.__evaluators.get(eval_name)
if not eval_rule:
eval_rule = self.__find_eval_by_prefix(eval_name)
eval_rule = self.__find_eval_by_prefix(
eval_name=eval_name,
)

if not eval_rule:
if self.__fallback:
Expand All @@ -184,7 +186,7 @@ def eval(

return eval_rule.run(eval_name)

@lru_cache
@lru_cache(maxsize=1024)
def __find_eval_by_prefix(
self,
eval_name: str,
Expand Down

0 comments on commit 0398889

Please sign in to comment.