summaryrefslogtreecommitdiff
path: root/python/basedetection.py
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-10-15 13:15:42 -0400
committerJosh Ferrell <josh@vector35.com>2025-10-15 13:16:01 -0400
commit25212cfd39f6dc45ce9030c194b6131645b76ba3 (patch)
tree3d17e7456a8812887dc488371a7f48e0fb0a4946 /python/basedetection.py
parent501af661e5805cb0139ac7fca29b6a5dbd3beefd (diff)
Fix some python type hints
Diffstat (limited to 'python/basedetection.py')
-rw-r--r--python/basedetection.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/python/basedetection.py b/python/basedetection.py
index e5b51cd1..ea6151cc 100644
--- a/python/basedetection.py
+++ b/python/basedetection.py
@@ -162,13 +162,13 @@ class BaseAddressDetection:
def detect_base_address(
self,
arch: Optional[Union['architecture.Architecture', str]] = None,
- analysis: Optional[Literal["basic", "controlFlow", "full"]] = "full",
- min_strlen: Optional[int] = 10,
- alignment: Optional[int] = 1024,
- low_boundary: Optional[int] = 0,
- high_boundary: Optional[int] = 0xFFFFFFFFFFFFFFFF,
- poi_analysis: Optional[BaseAddressDetectionPOISetting] = BaseAddressDetectionPOISetting.POIAnalysisAll,
- max_pointers: Optional[int] = 128,
+ analysis: Literal["basic", "controlFlow", "full"] = "full",
+ min_strlen: int = 10,
+ alignment: int = 1024,
+ low_boundary: int = 0,
+ high_boundary: int = 0xFFFFFFFFFFFFFFFF,
+ poi_analysis: BaseAddressDetectionPOISetting = BaseAddressDetectionPOISetting.POIAnalysisAll,
+ max_pointers: int = 128,
) -> bool:
"""
``detect_base_address`` runs initial analysis and attempts to identify candidate base addresses