diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-06-27 15:49:03 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-08-29 18:07:37 +0200 |
commit | a27d18f2265c74804842c1170396dbc273c9e1c9 (patch) | |
tree | fb3ed963967c4dc39966ce363e365d2abddbba29 /CC/prebuilt/read_pkgconfig.py | |
parent | 5a365857fb8edb719b687b989351287b0ae09532 (diff) | |
download | rules-cc-a27d18f2265c74804842c1170396dbc273c9e1c9.tar.gz |
python: Add type hints and fix style in rules scripts
For maximum compatibility, we use the uppercase types from the
typing package instead of the built-in types, therefore compliant
with PEP 484 and PEP 526.
Diffstat (limited to 'CC/prebuilt/read_pkgconfig.py')
-rwxr-xr-x | CC/prebuilt/read_pkgconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CC/prebuilt/read_pkgconfig.py b/CC/prebuilt/read_pkgconfig.py index 7530e6c..115c305 100755 --- a/CC/prebuilt/read_pkgconfig.py +++ b/CC/prebuilt/read_pkgconfig.py @@ -54,7 +54,7 @@ def read_ldflags(pkg: str, args: List[str], env: Dict[str, str]) -> str: return " ".join([f for f in link_flags if not is_local(f)]) -def read_pkgconfig(): +def read_pkgconfig() -> None: if len(sys.argv) < 3: print(f"usage: read_pkgconfig OUT_NAME PC_FILE [PC_ARGS...]") exit(1) |