From ba1f2a8f07304dc3bff26a9064ef1e184fce2ccd Mon Sep 17 00:00:00 2001 From: Angie Date: Wed, 10 Jul 2024 17:18:36 -0400 Subject: [PATCH] black --- src/splat/disassembler/spimdisasm_disassembler.py | 4 +++- src/splat/segtypes/ps2/gcc_except_table.py | 9 ++++++--- src/splat/util/options.py | 4 +++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/splat/disassembler/spimdisasm_disassembler.py b/src/splat/disassembler/spimdisasm_disassembler.py index b8093f3c..67bb9b0d 100644 --- a/src/splat/disassembler/spimdisasm_disassembler.py +++ b/src/splat/disassembler/spimdisasm_disassembler.py @@ -89,7 +89,9 @@ def configure(self): ) spimdisasm.common.GlobalConfig.ASM_DATA_LABEL = options.opts.asm_data_macro spimdisasm.common.GlobalConfig.ASM_TEXT_END_LABEL = options.opts.asm_end_label - spimdisasm.common.GlobalConfig.ASM_EHTBL_LABEL = options.opts.asm_ehtable_label_macro + spimdisasm.common.GlobalConfig.ASM_EHTBL_LABEL = ( + options.opts.asm_ehtable_label_macro + ) if options.opts.asm_emit_size_directive is not None: spimdisasm.common.GlobalConfig.ASM_EMIT_SIZE_DIRECTIVE = ( diff --git a/src/splat/segtypes/ps2/gcc_except_table.py b/src/splat/segtypes/ps2/gcc_except_table.py index b91d9291..101bf12c 100644 --- a/src/splat/segtypes/ps2/gcc_except_table.py +++ b/src/splat/segtypes/ps2/gcc_except_table.py @@ -1,9 +1,12 @@ -from __future__ import annotations +from typing import Optional from ..common.data import CommonSegData from ...util import log -from ...disassembler.disassembler_section import DisassemblerSection, make_gcc_except_table_section +from ...disassembler.disassembler_section import ( + DisassemblerSection, + make_gcc_except_table_section, +) class PS2SegGcc_except_table(CommonSegData): @@ -12,7 +15,7 @@ class PS2SegGcc_except_table(CommonSegData): def get_linker_section(self) -> str: return ".gcc_except_table" - def get_section_flags(self) -> str|None: + def get_section_flags(self) -> Optional[str]: return "aw" def configure_disassembler_section( diff --git a/src/splat/util/options.py b/src/splat/util/options.py index 74d53208..7ac975c5 100644 --- a/src/splat/util/options.py +++ b/src/splat/util/options.py @@ -495,7 +495,9 @@ def parse_endianness() -> Literal["big", "little"]: ), asm_data_macro=p.parse_opt("asm_data_macro", str, comp.asm_data_macro), asm_end_label=p.parse_opt("asm_end_label", str, comp.asm_end_label), - asm_ehtable_label_macro=p.parse_opt("asm_ehtable_label_macro", str, comp.asm_ehtable_label_macro), + asm_ehtable_label_macro=p.parse_opt( + "asm_ehtable_label_macro", str, comp.asm_ehtable_label_macro + ), asm_emit_size_directive=asm_emit_size_directive, include_macro_inc=p.parse_opt( "include_macro_inc", bool, comp.include_macro_inc