No need for Optional

This commit is contained in:
Kovid Goyal 2021-09-26 12:30:08 +05:30
parent 3ce087a716
commit a32b6d5cf5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -231,7 +231,7 @@ def get_sanitize_args(cc: str, ccver: Tuple[int, int]) -> List[str]:
def test_compile(
cc: str, *cflags: str,
src: Optional[str] = None,
src: str = '',
lang: str = 'c',
link_also: bool = True,
show_stderr: bool = False,
@ -251,7 +251,7 @@ def test_compile(
).wait() == 0
def first_successful_compile(cc: str, *cflags: str, src: Optional[str] = None, lang: str = 'c') -> str:
def first_successful_compile(cc: str, *cflags: str, src: str = '', lang: str = 'c') -> str:
for x in cflags:
if test_compile(cc, *shlex.split(x), src=src, lang=lang):
return x