mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
espcoredump: Fix Python style
This commit is contained in:
parent
e32cca2ad1
commit
e13e3bff7e
@ -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:]
|
||||
|
@ -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
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user