Skip to content

Commit 0221c05

Browse files
committed
Revert Py3.9 compatibility fixes.
1 parent 7b2495e commit 0221c05

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

Platforms/Apple/.ruff.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
extend = "../../.ruff.toml" # Inherit the project-wide settings
22

3-
# iOS buildbot worker uses Python 3.9
4-
target-version = "py39"
5-
63
[format]
74
preview = true
85
docstring-code-format = true

Platforms/Apple/__main__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@
5252
from os.path import basename, relpath
5353
from pathlib import Path
5454
from subprocess import CalledProcessError
55-
from typing import Union
5655

5756
EnvironmentT = dict[str, str]
58-
ArgsT = Sequence[Union[str, Path]]
57+
ArgsT = Sequence[str | Path]
5958

6059
SCRIPT_NAME = Path(__file__).name
6160
PYTHON_DIR = Path(__file__).resolve().parent.parent.parent

Platforms/Apple/testbed/__main__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import subprocess
88
import sys
99
from pathlib import Path
10-
from typing import Union
1110

1211
TEST_SLICES = {
1312
"iOS": "ios-arm64_x86_64-simulator",
@@ -263,7 +262,7 @@ def update_test_plan(testbed_path, platform, args):
263262

264263
def run_testbed(
265264
platform: str,
266-
simulator: Union[str, None],
265+
simulator: str | None,
267266
args: list[str],
268267
verbose: bool = False,
269268
):

0 commit comments

Comments
 (0)