Skip to content

Commit

Permalink
Add type annotations to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
robmcl4 committed Feb 13, 2024
1 parent 8af5263 commit f9c406a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion greed/state_plugins/plugin.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from greed.state import SymbolicEVMState


class SimStatePlugin:
"""
Interface for SimState plugins.
"""
state: "SymbolicEVMState"

def __init__(self):
self.state = None
return

def set_state(self, state):
def set_state(self, state: "SymbolicEVMState"):
self.state = state

def copy(self):
Expand Down

0 comments on commit f9c406a

Please sign in to comment.