Skip to content

Commit

Permalink
Replace cache with lru_cache to keep Py3.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Apr 22, 2024
1 parent 950a49c commit 82f295f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slither/visitors/expression/expression.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from functools import cache
from functools import lru_cache

from slither.core.expressions.assignment_operation import AssignmentOperation
from slither.core.expressions.binary_operation import BinaryOperation
Expand All @@ -25,7 +25,7 @@
logger = logging.getLogger("ExpressionVisitor")


@cache
@lru_cache()
def get_visitor_mapping():
"""Returns a visitor mapping from expression type to visiting functions."""
return {
Expand Down

0 comments on commit 82f295f

Please sign in to comment.