Files
typeshed/stdlib/3/runpy.pyi
Jelle Zijlstra 5d553c9584 apply black and isort (#4287)
* apply black and isort

* move some type ignores
2020-06-28 13:31:00 -07:00

21 lines
629 B
Python

from types import ModuleType
from typing import Any, Dict, Optional
class _TempModule:
mod_name: str = ...
module: ModuleType = ...
def __init__(self, mod_name): ...
def __enter__(self): ...
def __exit__(self, *args): ...
class _ModifiedArgv0:
value: Any = ...
def __init__(self, value): ...
def __enter__(self): ...
def __exit__(self, *args): ...
def run_module(
mod_name: str, init_globals: Optional[Dict[str, Any]] = ..., run_name: Optional[str] = ..., alter_sys: bool = ...
): ...
def run_path(path_name: str, init_globals: Optional[Dict[str, Any]] = ..., run_name: str = ...): ...