From d864867cdb810701a0cae334c39748cc5368fb8a Mon Sep 17 00:00:00 2001 From: cadmic Date: Wed, 24 Jan 2024 14:50:53 -0800 Subject: [PATCH] More type annotations --- retail_progress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retail_progress.py b/retail_progress.py index d541daccf9..d5c3927a24 100755 --- a/retail_progress.py +++ b/retail_progress.py @@ -114,7 +114,7 @@ def run_objdump(path: Path) -> List[Inst]: result.pop() return result -def pair_instructions(insts1: List[Inst], insts2: List[Inst]) -> Iterator[Tuple[Inst|None, Inst|None]]: +def pair_instructions(insts1: List[Inst], insts2: List[Inst]) -> Iterator[Tuple[Optional[Inst], Optional[Inst]]]: differ = difflib.SequenceMatcher( a=[(inst.func_name, inst.mnemonic) for inst in insts1], b=[(inst.func_name, inst.mnemonic) for inst in insts2],