Skip to content

Commit 1fc58e5

Browse files
authored
Use stubgen's --export-less option in create_baseline_stubs.py (#8843)
1 parent 477bfa2 commit 1fc58e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/create_baseline_stubs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_installed_package_info(project: str) -> tuple[str, str] | None:
4747

4848
def run_stubgen(package: str, output: str) -> None:
4949
print(f"Running stubgen: stubgen -o {output} -p {package}")
50-
subprocess.run(["stubgen", "-o", output, "-p", package], check=True)
50+
subprocess.run(["stubgen", "-o", output, "-p", package, "--export-less"], check=True)
5151

5252

5353
def run_black(stub_dir: str) -> None:

0 commit comments

Comments
 (0)