mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
create_baseline_stubs.py: Fix stubgen invocation (#6856)
This commit is contained in:
@@ -44,7 +44,7 @@ def get_installed_package_info(project: str) -> Optional[Tuple[str, str]]:
|
||||
|
||||
def run_stubgen(package: str) -> None:
|
||||
print(f"Running stubgen: stubgen -p {package}")
|
||||
subprocess.run(["python", "-m", "mypy.stubgen", "-p", package], check=True)
|
||||
subprocess.run(["stubgen", "-p", package], check=True)
|
||||
|
||||
|
||||
def copy_stubs(src_base_dir: str, package: str, stub_dir: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user