Files
typeshed/stdlib/runpy.pyi
2023-01-18 09:37:34 +01:00

24 lines
788 B
Python

from _typeshed import Self, Unused
from types import ModuleType
from typing import Any
__all__ = ["run_module", "run_path"]
class _TempModule:
mod_name: str
module: ModuleType
def __init__(self, mod_name: str) -> None: ...
def __enter__(self: Self) -> Self: ...
def __exit__(self, *args: Unused) -> None: ...
class _ModifiedArgv0:
value: Any
def __init__(self, value: Any) -> None: ...
def __enter__(self) -> None: ...
def __exit__(self, *args: Unused) -> None: ...
def run_module(
mod_name: str, init_globals: dict[str, Any] | None = None, run_name: str | None = None, alter_sys: bool = False
) -> dict[str, Any]: ...
def run_path(path_name: str, init_globals: dict[str, Any] | None = None, run_name: str | None = None) -> dict[str, Any]: ...