From aad81074f7178d5deb299710c745bd21c5da947c Mon Sep 17 00:00:00 2001 From: Joran Honig Date: Wed, 3 Apr 2019 14:36:16 +0200 Subject: [PATCH] add type hints to strategy --- mythril/laser/ethereum/strategy/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mythril/laser/ethereum/strategy/__init__.py b/mythril/laser/ethereum/strategy/__init__.py index 58672339..140880b0 100644 --- a/mythril/laser/ethereum/strategy/__init__.py +++ b/mythril/laser/ethereum/strategy/__init__.py @@ -1,4 +1,6 @@ from abc import ABC, abstractmethod +from typing import List +from mythril.laser.ethereum.state.global_state import GlobalState class BasicSearchStrategy(ABC): @@ -7,7 +9,7 @@ class BasicSearchStrategy(ABC): __slots__ = "work_list", "max_depth" def __init__(self, work_list, max_depth): - self.work_list = work_list + self.work_list = work_list # type: List[GlobalState] self.max_depth = max_depth def __iter__(self):