Replace "str | None" with typing.Union[str, None].
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
from os.path import basename, relpath
from pathlib import Path
from subprocess import CalledProcessError
+from typing import Union
EnvironmentT = dict[str, str]
-ArgsT = Sequence[str | Path]
+ArgsT = Sequence[Union[str, Path]]
SCRIPT_NAME = Path(__file__).name
PYTHON_DIR = Path(__file__).resolve().parent.parent.parent
import subprocess
import sys
from pathlib import Path
+from typing import Union
TEST_SLICES = {
"iOS": "ios-arm64_x86_64-simulator",
def run_testbed(
platform: str,
- simulator: str | None,
+ simulator: Union[str, None],
args: list[str],
verbose: bool = False,
):