From 5d27ffc8c799d1a9ace6d81db61c765e69d36851 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 19 Feb 2020 11:33:17 -0800 Subject: [PATCH] Add a few attributes to distutils.ccompiler.CCompiler (#3741) --- stdlib/2and3/distutils/ccompiler.pyi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/stdlib/2and3/distutils/ccompiler.pyi b/stdlib/2and3/distutils/ccompiler.pyi index 94fad8bac..b4243a176 100644 --- a/stdlib/2and3/distutils/ccompiler.pyi +++ b/stdlib/2and3/distutils/ccompiler.pyi @@ -3,7 +3,7 @@ from typing import Any, Callable, List, Optional, Tuple, Union -_Macro = Union[Tuple[str], Tuple[str, str]] +_Macro = Union[Tuple[str], Tuple[str, Optional[str]]] def gen_lib_options(compiler: CCompiler, library_dirs: List[str], @@ -19,6 +19,16 @@ def new_compiler(plat: Optional[str] = ..., compiler: Optional[str] = ..., def show_compilers() -> None: ... class CCompiler: + dry_run: bool + force: bool + verbose: bool + output_dir: Optional[str] + macros: List[_Macro] + include_dirs: List[str] + libraries: List[str] + library_dirs: List[str] + runtime_library_dirs: List[str] + objects: List[str] def __init__(self, verbose: int = ..., dry_run: int = ..., force: int = ...) -> None: ... def add_include_dir(self, dir: str) -> None: ...