From 25212cfd39f6dc45ce9030c194b6131645b76ba3 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 15 Oct 2025 13:15:42 -0400 Subject: Fix some python type hints --- python/basedetection.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'python/basedetection.py') 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 -- cgit v1.3.1