espcoredump: Fix Python style

pull/12186/head
Roland Dobai 2023-04-14 13:09:57 +02:00 zatwierdzone przez BOT
rodzic e32cca2ad1
commit e13e3bff7e
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -164,7 +164,6 @@ class ElfFile(object):
sha256.update(elf_bytes)
self.sha256 = sha256.digest()
@staticmethod
def _parse_string_table(byte_str, offset): # type: (bytes, int) -> str
section_name_str = byte_str[offset:]

Wyświetl plik

@ -88,7 +88,7 @@ class EspCoreDumpVersion(object):
COREDUMP_SUPPORTED_TARGETS = XTENSA_CHIPS + RISCV_CHIPS
def __init__(self, version=None): # type: (int) -> None
def __init__(self, version=None): # type: (Optional[int]) -> None
"""Constructor for core dump version
"""
super(EspCoreDumpVersion, self).__init__()
@ -248,7 +248,7 @@ class EspCoreDumpLoader(EspCoreDumpVersion):
else:
raise NotImplementedError
def _extract_elf_corefile(self, exe_name=None, e_machine=ESPCoreDumpElfFile.EM_XTENSA): # type: (str, int) -> None
def _extract_elf_corefile(self, exe_name=None, e_machine=ESPCoreDumpElfFile.EM_XTENSA): # type: (Optional[str], int) -> None
"""
Reads the ELF formatted core dump image and parse it
"""