diff --git a/slither/detectors/oracles/oracle_detector.py b/slither/detectors/oracles/oracle_detector.py index 6e212e31e..8731257b3 100644 --- a/slither/detectors/oracles/oracle_detector.py +++ b/slither/detectors/oracles/oracle_detector.py @@ -1,3 +1,4 @@ +from typing import List from slither.analyses.data_dependency.data_dependency import get_dependencies from slither.core.declarations.contract import Contract from slither.core.declarations.function_contract import FunctionContract @@ -11,7 +12,7 @@ class OracleDetector(AbstractDetector): - def find_oracles(self, contracts: Contract) -> list[Oracle]: + def find_oracles(self, contracts: Contract) -> List[Oracle]: """ Detects off-chain oracle contract and VAR """