Skip to content

Commit

Permalink
Revert cache size increase
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored and Pierre-Sassoulas committed Aug 19, 2021
1 parent df556a1 commit 441ec27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylint/checkers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ def _get_python_type_of_node(node):
return None


@lru_cache(maxsize=8192)
@lru_cache(maxsize=1024)
def safe_infer(node: nodes.NodeNG, context=None) -> Optional[nodes.NodeNG]:
"""Return the inferred value for the given node.
Expand Down Expand Up @@ -1205,7 +1205,7 @@ def safe_infer(node: nodes.NodeNG, context=None) -> Optional[nodes.NodeNG]:
return value if len(inferred_types) <= 1 else None


@lru_cache(maxsize=2048)
@lru_cache(maxsize=512)
def infer_all(
node: nodes.NodeNG, context: InferenceContext = None
) -> List[nodes.NodeNG]:
Expand Down

0 comments on commit 441ec27

Please sign in to comment.