1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 11:49:24 +00:00

More type annotations

This commit is contained in:
cadmic 2024-01-24 14:50:53 -08:00
parent 96e94ae1f5
commit d864867cdb

View file

@ -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],