Use stubgen's --export-less option in create_baseline_stubs.py (#8843)

This commit is contained in:
Alex Waygood
2022-10-04 10:58:51 -07:00
committed by GitHub
parent 477bfa2e92
commit 1fc58e5413

View File

@@ -47,7 +47,7 @@ def get_installed_package_info(project: str) -> tuple[str, str] | None:
def run_stubgen(package: str, output: str) -> None:
print(f"Running stubgen: stubgen -o {output} -p {package}")
subprocess.run(["stubgen", "-o", output, "-p", package], check=True)
subprocess.run(["stubgen", "-o", output, "-p", package, "--export-less"], check=True)
def run_black(stub_dir: str) -> None: