diff --git a/tools/assets/extract/extase/repr_c_struct.py b/tools/assets/extract/extase/repr_c_struct.py index 57fd997d1e..75cba12c41 100644 --- a/tools/assets/extract/extase/repr_c_struct.py +++ b/tools/assets/extract/extase/repr_c_struct.py @@ -24,8 +24,7 @@ class CData(abc.ABC): # Unpack @abc.abstractmethod - def unpack_from(self, data: memoryview, offset: int = 0) -> Any: - ... + def unpack_from(self, data: memoryview, offset: int = 0) -> Any: ... class CData_Value(CData): @@ -121,7 +120,6 @@ class CData_Struct(CData): def try_stuff(): - """ struct { s8 fun; diff --git a/tools/assets/extract/extase_oot64/animation_resources.py b/tools/assets/extract/extase_oot64/animation_resources.py index 78233baa0b..14dbda4c3c 100644 --- a/tools/assets/extract/extase_oot64/animation_resources.py +++ b/tools/assets/extract/extase_oot64/animation_resources.py @@ -20,7 +20,7 @@ from ..extase.cdata_resources import ( class AnimationFrameDataResource(CDataResource, can_size_be_unknown=True): - def write_binang(resource, memory_context, v, wctx:CDataExtWriteContext): + def write_binang(resource, memory_context, v, wctx: CDataExtWriteContext): wctx.f.write(wctx.line_prefix) wctx.f.write(f" 0x{v:04X}" if v >= 0 else "-0x" + f"{v:04X}".removeprefix("-")) return True diff --git a/tools/assets/extract/extase_oot64/skelanime_legacy_resources.py b/tools/assets/extract/extase_oot64/skelanime_legacy_resources.py index 4e2899b93a..56fdf065d1 100644 --- a/tools/assets/extract/extase_oot64/skelanime_legacy_resources.py +++ b/tools/assets/extract/extase_oot64/skelanime_legacy_resources.py @@ -175,10 +175,7 @@ class LegacyAnimationResource(CDataResource): resource_jointKey.file, ) - if ( - resource_frameData.range_start - < resource_jointKey.range_start - ): + if resource_frameData.range_start < resource_jointKey.range_start: resource_frameData.length = ( resource_jointKey.range_start - resource_frameData.range_start ) // animation_resources.AnimationFrameDataResource.elem_cdata_ext.size