Skip to content

Commit

Permalink
Fix Mypy type error
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Sep 21, 2024
1 parent 15463d6 commit 37809f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dmoj/executors/asm_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ 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 37809f2

Please sign in to comment.