diff --git a/stdlib/distutils/_msvccompiler.pyi b/stdlib/distutils/_msvccompiler.pyi new file mode 100644 index 000000000000..bba9373b72db --- /dev/null +++ b/stdlib/distutils/_msvccompiler.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from distutils.ccompiler import CCompiler +from typing import ClassVar, Final + +PLAT_SPEC_TO_RUNTIME: Final[dict[str, str]] +PLAT_TO_VCVARS: Final[dict[str, str]] + +class MSVCCompiler(CCompiler): + compiler_type: ClassVar[str] + executables: ClassVar[dict[Incomplete, Incomplete]] + res_extension: ClassVar[str] + initialized: bool + def initialize(self, plat_name: str | None = None) -> None: ... diff --git a/stubs/setuptools/distutils/_msvccompiler.pyi b/stubs/setuptools/distutils/_msvccompiler.pyi new file mode 100644 index 000000000000..f2ead92dea06 --- /dev/null +++ b/stubs/setuptools/distutils/_msvccompiler.pyi @@ -0,0 +1 @@ +from setuptools._distutils._msvccompiler import * diff --git a/stubs/setuptools/setuptools/_distutils/_msvccompiler.pyi b/stubs/setuptools/setuptools/_distutils/_msvccompiler.pyi new file mode 100644 index 000000000000..7b8e4eb6bb42 --- /dev/null +++ b/stubs/setuptools/setuptools/_distutils/_msvccompiler.pyi @@ -0,0 +1,15 @@ +from binascii import Incomplete +from typing import ClassVar, Final + +from .ccompiler import CCompiler + +PLAT_SPEC_TO_RUNTIME: Final[dict[str, str]] + +class MSVCCompiler(CCompiler): + compiler_type: ClassVar[str] + executables: ClassVar[dict[Incomplete, Incomplete]] + res_extension: ClassVar[str] + initialized: bool + def initialize(self, plat_name: str | None = None) -> None: ... + @property + def out_extensions(self) -> dict[str, str]: ...