summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/basicblock.py2
-rw-r--r--python/function.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/python/basicblock.py b/python/basicblock.py
index 887f6679..623cc3ed 100644
--- a/python/basicblock.py
+++ b/python/basicblock.py
@@ -30,7 +30,7 @@ from . import architecture
from . import highlight as _highlight
from . import function as _function
-@dataclass
+@dataclass(frozen=True)
class BasicBlockEdge:
type:BranchType
source:'BasicBlock'
diff --git a/python/function.py b/python/function.py
index 229fd2f6..42e88fa3 100644
--- a/python/function.py
+++ b/python/function.py
@@ -69,9 +69,9 @@ ILInstructionType = Union['lowlevelil.LowLevelILInstruction', 'mediumlevelil.Med
def _function_name_():
return inspect.stack()[1][0].f_code.co_name
-@dataclass
+@dataclass(frozen=True)
class ArchAndAddr:
- arch:Optional['architecture.Architecture']
+ arch:'architecture.Architecture'
addr:int
def __repr__(self):