Replace cache with lru_cache to keep Py3.8 compatibility

pull/2438/head
Alexis 7 months ago
parent 950a49cb28
commit 82f295f2d0
No known key found for this signature in database
  1. 4
      slither/visitors/expression/expression.py

@ -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
@ -25,7 +25,7 @@ from slither.exceptions import SlitherError
logger = logging.getLogger("ExpressionVisitor")
@cache
@lru_cache()
def get_visitor_mapping():
"""Returns a visitor mapping from expression type to visiting functions."""
return {

Loading…
Cancel
Save