add type hint to laser_plugins

pull/980/head
Joran Honig 6 years ago
parent 313bbec18f
commit e70cd37b2f
  1. 4
      mythril/laser/ethereum/plugins/plugin_loader.py

@ -1,6 +1,8 @@
from mythril.laser.ethereum.svm import LaserEVM from mythril.laser.ethereum.svm import LaserEVM
from mythril.laser.ethereum.plugins.plugin import LaserPlugin from mythril.laser.ethereum.plugins.plugin import LaserPlugin
from typing import List
class LaserPluginLoader: class LaserPluginLoader:
""" """
@ -14,7 +16,7 @@ class LaserPluginLoader:
:param symbolic_vm: symbolic virtual machine to load plugins for :param symbolic_vm: symbolic virtual machine to load plugins for
""" """
self.symbolic_vm = symbolic_vm self.symbolic_vm = symbolic_vm
self.laser_plugins = [] self.laser_plugins: List[LaserPlugin] = []
def load(self, laser_plugin: LaserPlugin) -> None: def load(self, laser_plugin: LaserPlugin) -> None:
""" Loads the plugin """ Loads the plugin

Loading…
Cancel
Save