Skip to content

Commit

Permalink
executors/asm: fix mypy error in NativeMixin (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo authored Sep 29, 2024
1 parent 367abcc commit f9e3356
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dmoj/executors/asm_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ class UnknownPlatformMixin(ASMExecutor):
abi = PTBOX_ABI_INVALID


NativeMixin: Any = (
[cls for cls in (PlatformX86Mixin, PlatformX64Mixin, PlatformARMMixin, PlatformARM64Mixin) if cls.abi == NATIVE_ABI]
or [UnknownPlatformMixin]
)[0]
NativeMixin: Any = next(
(
cls
for cls in (PlatformX86Mixin, PlatformX64Mixin, PlatformARMMixin, PlatformARM64Mixin)
if cls.abi == NATIVE_ABI
),
UnknownPlatformMixin,
)

0 comments on commit f9e3356

Please sign in to comment.