Fix circular dep

pull/1895/head
Feist Josselin 1 year ago
parent 4053c9b9e3
commit c8bd72ed9f
  1. 4
      slither/core/variables/local_variable.py

@ -2,7 +2,6 @@ from typing import Optional, TYPE_CHECKING
from slither.core.variables.variable import Variable from slither.core.variables.variable import Variable
from slither.core.solidity_types.user_defined_type import UserDefinedType from slither.core.solidity_types.user_defined_type import UserDefinedType
from slither.core.solidity_types.array_type import ArrayType
from slither.core.solidity_types.mapping_type import MappingType from slither.core.solidity_types.mapping_type import MappingType
from slither.core.solidity_types.elementary_type import ElementaryType from slither.core.solidity_types.elementary_type import ElementaryType
@ -51,6 +50,9 @@ class LocalVariable(Variable):
Returns: Returns:
(bool) (bool)
""" """
# pylint: disable=import-outside-toplevel
from slither.core.solidity_types.array_type import ArrayType
if self.location == "memory": if self.location == "memory":
return False return False
if self.location == "calldata": if self.location == "calldata":

Loading…
Cancel
Save