From 57e5d93c30a6da8e5fa36e13790c9b9b015c0a65 Mon Sep 17 00:00:00 2001 From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:38:52 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: lpascal-ledger --- test_utils/musig2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_utils/musig2.py b/test_utils/musig2.py index 5f9a98bc..60f2c430 100644 --- a/test_utils/musig2.py +++ b/test_utils/musig2.py @@ -357,7 +357,7 @@ def parse_script(self) -> str: self.index += 1 return self.input[start:self.index] - def parse_key_indexes(self): + def parse_key_indexes(self) -> List[int]: nums = [] self.consume('@') nums.append(self.parse_num()) @@ -366,13 +366,13 @@ def parse_key_indexes(self): nums.append(self.parse_num()) return nums - def parse_num(self): + def parse_num(self) -> int: start = self.index while self.index < self.length and self.input[self.index].isdigit(): self.index += 1 return int(self.input[start:self.index]) - def consume(self, char): + def consume(self, char: str) -> None: if self.input[self.index:self.index+len(char)] == char: self.index += len(char) else: