Skip to content

Commit 47ba54c

Browse files
committed
add dict type annotation
1 parent 6d79be8 commit 47ba54c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/ci_build/github/apple/build_settings_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,22 @@
22

33
import json
44
import pathlib
5+
import typing
56

67
_DEFAULT_BUILD_SYSROOT_ARCHS = {
78
"iphoneos": ["arm64"],
89
"iphonesimulator": ["arm64", "x86_64"],
910
}
1011

1112

12-
def parse_build_settings_file(build_settings_file: pathlib.Path) -> dict:
13+
def parse_build_settings_file(build_settings_file: pathlib.Path) -> dict[str, typing.Any]:
1314
"""
1415
Parses the provided build settings file into a build settings dict.
1516
1617
:param build_settings_file: The build settings file path.
1718
:type build_settings_file: pathlib.Path
1819
:return: The build settings dict.
19-
:rtype: dict[Any, Any]
20+
:rtype: dict[str, Any]
2021
"""
2122
with open(build_settings_file) as f:
2223
build_settings_data = json.load(f)

0 commit comments

Comments
 (0)