mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Backport many Self-related changes to the Python-2 stdlib (#7128)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Self
|
||||
from random import Random
|
||||
from thread import LockType
|
||||
from typing import IO, Any, AnyStr, Iterable, Iterator, Text, overload
|
||||
@@ -23,7 +24,7 @@ class _TemporaryFileWrapper(IO[str]):
|
||||
name: Any
|
||||
def __init__(self, file: IO[str], name: Any, delete: bool = ...) -> None: ...
|
||||
def __del__(self) -> None: ...
|
||||
def __enter__(self) -> _TemporaryFileWrapper: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(self, exc, value, tb) -> bool | None: ...
|
||||
def __getattr__(self, name: unicode) -> Any: ...
|
||||
def close(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user