Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Apple/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
extend = "../.ruff.toml" # Inherit the project-wide settings

# iOS buildbot worker uses Python 3.9
target-version = "py39"

[format]
preview = true
docstring-code-format = true
Expand Down
5 changes: 2 additions & 3 deletions Apple/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@
from os.path import basename, relpath
from pathlib import Path
from subprocess import CalledProcessError
from typing import Union

EnvironmentT = dict[str, str]
ArgsT = Sequence[Union[str, Path]]
ArgsT = Sequence[str | Path]

SCRIPT_NAME = Path(__file__).name
PYTHON_DIR = Path(__file__).resolve().parent.parent
Expand Down Expand Up @@ -769,7 +768,7 @@ def build(context: argparse.Namespace, host: str | None = None) -> None:
]:
step(context, host=step_host)

if host in {"all", "hosts"}:
if host == "all":
package(context)


Expand Down
3 changes: 1 addition & 2 deletions Apple/testbed/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import subprocess
import sys
from pathlib import Path
from typing import Union

TEST_SLICES = {
"iOS": "ios-arm64_x86_64-simulator",
Expand Down Expand Up @@ -263,7 +262,7 @@ def update_test_plan(testbed_path, platform, args):

def run_testbed(
platform: str,
simulator: Union[str, None],
simulator: str | None,
args: list[str],
verbose: bool = False,
):
Expand Down
Loading