mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-07-23 23:29:38 -04:00
First pass of ruff check fixes (#26257)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from typing import Sequence
|
||||
|
||||
import platform
|
||||
from subprocess import DEVNULL
|
||||
|
||||
@@ -21,7 +23,7 @@ def check_subcommand_stdin(file_to_read, command, *args):
|
||||
return result
|
||||
|
||||
|
||||
def check_returncode(result, expected=[0]):
|
||||
def check_returncode(result, expected: Sequence[int] = [0]):
|
||||
"""Print stdout if `result.returncode` does not match `expected`.
|
||||
"""
|
||||
if result.returncode not in expected:
|
||||
|
||||
Reference in New Issue
Block a user