summaryrefslogtreecommitdiff
path: root/python/variable.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-06-24 09:19:08 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-05 10:08:09 -0400
commitd37f7abfe4c1b23426b0fbdc85ae31788602ff28 (patch)
treeff106d8d52afc7cb4d85a1378a41e5c72a288c7d /python/variable.py
parente0389d244e6211126267e060a9c61a1e75481b76 (diff)
Don't inherit from object anymore
Diffstat (limited to 'python/variable.py')
-rw-r--r--python/variable.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/python/variable.py b/python/variable.py
index 1e496797..d4148446 100644
--- a/python/variable.py
+++ b/python/variable.py
@@ -29,7 +29,7 @@ from . import decorators
from .enums import RegisterValueType, VariableSourceType, DeadStoreElimination
@dataclass(frozen=True)
-class LookupTableEntry(object):
+class LookupTableEntry:
from_values:List[int]
to_value:int
@@ -181,7 +181,7 @@ class ExternalPointerRegisterValue(RegisterValue):
@dataclass(frozen=True)
-class ValueRange(object):
+class ValueRange:
start:int
end:int
step:int
@@ -198,7 +198,7 @@ class ValueRange(object):
@decorators.passive
-class PossibleValueSet(object):
+class PossibleValueSet:
"""
`class PossibleValueSet` PossibleValueSet is used to define possible values
that a variable can take. It contains methods to instantiate different
@@ -553,7 +553,7 @@ class PossibleValueSet(object):
@dataclass(frozen=True)
-class StackVariableReference(object):
+class StackVariableReference:
_source_operand:Optional[int]
type:'binaryninja.types.Type'
name:str
@@ -743,7 +743,7 @@ class Variable:
return self._var.to_BNVariable()
@dataclass(frozen=True)
-class ConstantReference(object):
+class ConstantReference:
value:int
size:int
pointer:bool
@@ -758,7 +758,7 @@ class ConstantReference(object):
@dataclass(frozen=True)
-class IndirectBranchInfo(object):
+class IndirectBranchInfo:
source_arch:'binaryninja.architecture.Architecture'
source_addr:int
dest_arch:'binaryninja.architecture.Architecture'
@@ -770,7 +770,7 @@ class IndirectBranchInfo(object):
@decorators.passive
-class ParameterVariables(object):
+class ParameterVariables:
def __init__(self, var_list:List[Variable], confidence:int=core.max_confidence, func:Optional['binaryninja.function.Function']=None):
self._vars = var_list
self._confidence = confidence
@@ -811,7 +811,7 @@ class ParameterVariables(object):
@dataclass(frozen=True, order=True)
-class AddressRange(object):
+class AddressRange:
start:int
end:int