massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / runpy.pyi
1 from _typeshed import Self
2 from types import ModuleType
3 from typing import Any
4
5 class _TempModule:
6     mod_name: str
7     module: ModuleType
8     def __init__(self, mod_name: str) -> None: ...
9     def __enter__(self: Self) -> Self: ...
10     def __exit__(self, *args: Any) -> None: ...
11
12 class _ModifiedArgv0:
13     value: Any
14     def __init__(self, value: Any) -> None: ...
15     def __enter__(self) -> None: ...
16     def __exit__(self, *args: Any) -> None: ...
17
18 def run_module(
19     mod_name: str, init_globals: dict[str, Any] | None = ..., run_name: str | None = ..., alter_sys: bool = ...
20 ) -> dict[str, Any]: ...
21 def run_path(path_name: str, init_globals: dict[str, Any] | None = ..., run_name: str | None = ...) -> dict[str, Any]: ...