fix typo mistake

This commit is contained in:
ColdWindScholar 2024-05-04 16:54:21 +08:00
parent 46e9de240d
commit 2d04f27e70
2 changed files with 2 additions and 2 deletions

View file

@ -708,7 +708,7 @@ class DAXML(metaclass=LogBase):
self.error("Couldn't find item key")
return data
def get_sys_property(self, key: int = "DA.SLA", length: int = 0x200000):
def get_sys_property(self, key: str = "DA.SLA", length: int = 0x200000):
self.send_command(self.Cmd.cmd_get_sys_property(key=key, length=length), noack=True)
cmd, result = self.get_command_result()
if type(result) is not upfile:

View file

@ -116,7 +116,7 @@ class Partition(metaclass=LogBase):
return data, guid_gpt
def get_backup_gpt(self, lun, gpt_num_part_entries, gpt_part_entry_size, gpt_part_entry_start_lba,
parttype="user") -> bytearray:
parttype="user") -> bytes:
data = self.readflash(addr=0, length=2 * self.config.pagesize, filename="", parttype=parttype, display=False)
if data == b"":
return data