Audit stdlib object annotations (#9519)

This commit is contained in:
Avasam
2023-01-17 10:40:00 -05:00
committed by GitHub
parent 3d6b8dccfe
commit c70d303985
31 changed files with 79 additions and 79 deletions

View File

@@ -1,4 +1,4 @@
from _typeshed import Self
from _typeshed import Self, Unused
from types import ModuleType
from typing import Any
@@ -9,13 +9,13 @@ class _TempModule:
module: ModuleType
def __init__(self, mod_name: str) -> None: ...
def __enter__(self: Self) -> Self: ...
def __exit__(self, *args: object) -> None: ...
def __exit__(self, *args: Unused) -> None: ...
class _ModifiedArgv0:
value: Any
def __init__(self, value: Any) -> None: ...
def __enter__(self) -> None: ...
def __exit__(self, *args: object) -> None: ...
def __exit__(self, *args: Unused) -> None: ...
def run_module(
mod_name: str, init_globals: dict[str, Any] | None = ..., run_name: str | None = ..., alter_sys: bool = ...