Skip to content

Commit a47d392

Browse files
authored
[NFC] build-script: add argparse.Namespace type annotation (#83376)
1 parent 9bc16e3 commit a47d392

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/build-script

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The ultimate tool for building Swift.
1414
"""
1515

1616

17+
from argparse import Namespace
1718
import json
1819
import os
1920
import platform
@@ -187,7 +188,7 @@ def tar(source, destination):
187188
# -----------------------------------------------------------------------------
188189
# Argument Validation
189190

190-
def validate_arguments(toolchain, args):
191+
def validate_arguments(toolchain, args: Namespace):
191192
if toolchain.cc is None or toolchain.cxx is None:
192193
fatal_error(
193194
"can't find clang (please install clang-3.5 or a "

0 commit comments

Comments
 (0)