Debian Codegraph @

jedi/third_party/typeshed/stdlib/runpy.pyi

raw symbols SCIP
1 from _typeshed import Unused
2 from types import ModuleType
3 from typing import Any
4 from typing_extensions import Self
5
6 __all__ = ["run_module", "run_path"]
7
8 class _TempModule:
9 mod_name: str
10 module: ModuleType
11 def __init__(self, mod_name: str) -> None: ...
12 def __enter__(self) -> Self: ...
13 def __exit__(self, *args: Unused) -> None: ...
14
15 class _ModifiedArgv0:
16 value: Any
17 def __init__(self, value: Any) -> None: ...
18 def __enter__(self) -> None: ...
19 def __exit__(self, *args: Unused) -> None: ...
20
21 def run_module(
22 mod_name: str, init_globals: dict[str, Any] | None = None, run_name: str | None = None, alter_sys: bool = False
23 ) -> dict[str, Any]: ...
24 def run_path(path_name: str, init_globals: dict[str, Any] | None = None, run_name: str | None = None) -> dict[str, Any]: ...