Skip to content

Commit 6d79be8

Browse files
committed
lint issues
1 parent 0240530 commit 6d79be8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tools/ci_build/github/apple/build_settings_utils.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
"iphonesimulator": ["arm64", "x86_64"],
99
}
1010

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

@@ -43,24 +44,24 @@ def validate_str_to_str_list_dict(input: dict[str, list[str]]):
4344

4445

4546
def get_sysroot_arch_pairs(build_settings: dict) -> list[tuple[str, str]]:
46-
'''
47+
"""
4748
Gets all specified sysroot/arch pairs.
4849
4950
:param build_settings: The build settings dict.
5051
:type build_settings: dict
5152
:return: A list of (sysroot, arch) tuples.
5253
:rtype: list[tuple[str, str]]
53-
'''
54+
"""
5455
pair_set: set[tuple[str, str]] = set()
5556
for sysroot, archs in build_settings["build_osx_archs"].items():
5657
for arch in archs:
5758
pair_set.add((sysroot, arch))
5859

59-
return sorted(list(pair_set))
60+
return sorted(pair_set)
6061

6162

6263
def get_build_params(build_settings: dict, sysroot: str) -> list[str]:
63-
'''
64+
"""
6465
Returns the build params associated with given `sysroot`.
6566
The special `sysroot` value "base" may be used to get the base build params.
6667
@@ -70,5 +71,5 @@ def get_build_params(build_settings: dict, sysroot: str) -> list[str]:
7071
:type sysroot: str
7172
:return: The build params associated with `sysroot`, if any, or an empty list.
7273
:rtype: list[str]
73-
'''
74+
"""
7475
return build_settings["build_params"].get(sysroot, [])

0 commit comments

Comments
 (0)