Fix typehints in MythrilAnalyzer

pull/906/head
Nikhil Parasaram 6 years ago
parent 0dcc70fbc5
commit 972662e4ae
  1. 2
      mythril/interfaces/cli.py
  2. 4
      mythril/mythril/mythril_analyzer.py

@ -63,7 +63,6 @@ def create_parser(parser: argparse.ArgumentParser) -> None:
""" """
Creates the parser by setting all the possible arguments Creates the parser by setting all the possible arguments
:param parser: The parser :param parser: The parser
:return:
""" """
parser.add_argument("solidity_file", nargs="*") parser.add_argument("solidity_file", nargs="*")
@ -256,7 +255,6 @@ def parse_args(parser: argparse.ArgumentParser, args: argparse.Namespace) -> Non
Parses the arguments Parses the arguments
:param parser: The parser :param parser: The parser
:param args: The args :param args: The args
:return:
""" """
if args.epic: if args.epic:
path = os.path.dirname(os.path.realpath(__file__)) path = os.path.dirname(os.path.realpath(__file__))

@ -45,7 +45,7 @@ class MythrilAnalyzer:
def dump_statespace( def dump_statespace(
self, self,
strategy: str, strategy: str,
contract: List[EVMContract] = None, contract: EVMContract = None,
address: Optional[str] = None, address: Optional[str] = None,
max_depth: Optional[int] = None, max_depth: Optional[int] = None,
execution_timeout: Optional[int] = None, execution_timeout: Optional[int] = None,
@ -84,7 +84,7 @@ class MythrilAnalyzer:
self, self,
strategy: str, strategy: str,
address: str, address: str,
contract: List[EVMContract] = None, contract: EVMContract = None,
max_depth: Optional[int] = None, max_depth: Optional[int] = None,
enable_physics: bool = False, enable_physics: bool = False,
phrackify: bool = False, phrackify: bool = False,

Loading…
Cancel
Save