From 73f5ad3c93c13477f7141f30cf13ba223529e210 Mon Sep 17 00:00:00 2001 From: William Aaron Cheung Date: Mon, 20 Mar 2023 20:42:29 -0400 Subject: [PATCH] Fix pylint issues --- slither/core/expressions/new_array.py | 1 + slither/slithir/operations/new_array.py | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/slither/core/expressions/new_array.py b/slither/core/expressions/new_array.py index 05d50f1689..b1d407793f 100644 --- a/slither/core/expressions/new_array.py +++ b/slither/core/expressions/new_array.py @@ -9,6 +9,7 @@ class NewArray(Expression): def __init__(self, array_type: "ArrayType") -> None: super().__init__() + # pylint: disable=import-outside-toplevel from slither.core.solidity_types.array_type import ArrayType assert isinstance(array_type, ArrayType) diff --git a/slither/slithir/operations/new_array.py b/slither/slithir/operations/new_array.py index b023a04a50..2d032ccd8c 100644 --- a/slither/slithir/operations/new_array.py +++ b/slither/slithir/operations/new_array.py @@ -1,10 +1,10 @@ from typing import List, Union, TYPE_CHECKING -from slither.slithir.operations.lvalue import OperationWithLValue + +from slither.core.solidity_types.array_type import ArrayType from slither.slithir.operations.call import Call -from slither.core.solidity_types.type import Type +from slither.slithir.operations.lvalue import OperationWithLValue if TYPE_CHECKING: - from slither.core.solidity_types.type_alias import ArrayType from slither.slithir.variables.constant import Constant from slither.slithir.variables.temporary import TemporaryVariable from slither.slithir.variables.temporary_ssa import TemporaryVariableSSA @@ -17,8 +17,6 @@ def __init__( lvalue: Union["TemporaryVariableSSA", "TemporaryVariable"], ) -> None: super().__init__() - from slither.core.solidity_types.array_type import ArrayType - assert isinstance(array_type, ArrayType) self._array_type = array_type