mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Add annotations to runpy.pyi (#2395)
This commit is contained in:
committed by
Jelle Zijlstra
parent
ebea29a0ed
commit
c3b5513475
@@ -1,17 +1,23 @@
|
||||
from typing import Any
|
||||
from types import ModuleType
|
||||
from typing import Dict, Optional, Any
|
||||
|
||||
class _TempModule:
|
||||
mod_name = ... # type: Any
|
||||
module = ... # type: Any
|
||||
mod_name: str = ...
|
||||
module: ModuleType = ...
|
||||
def __init__(self, mod_name): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, *args): ...
|
||||
|
||||
class _ModifiedArgv0:
|
||||
value = ... # type: Any
|
||||
value: Any = ...
|
||||
def __init__(self, value): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, *args): ...
|
||||
|
||||
def run_module(mod_name, init_globals=None, run_name=None, alter_sys=False): ...
|
||||
def run_path(path_name, init_globals=None, run_name=None): ...
|
||||
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 = ...): ...
|
||||
|
||||
Reference in New Issue
Block a user