mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-22 02:52:07 +08:00
Audit stdlib object annotations (#9519)
This commit is contained in:
@@ -15,6 +15,7 @@ from _typeshed import (
|
||||
StrOrBytesPath,
|
||||
StrPath,
|
||||
SupportsLenAndGetItem,
|
||||
Unused,
|
||||
WriteableBuffer,
|
||||
structseq,
|
||||
)
|
||||
@@ -730,7 +731,7 @@ def rmdir(path: StrOrBytesPath, *, dir_fd: int | None = ...) -> None: ...
|
||||
|
||||
class _ScandirIterator(Iterator[DirEntry[AnyStr]], AbstractContextManager[_ScandirIterator[AnyStr]]):
|
||||
def __next__(self) -> DirEntry[AnyStr]: ...
|
||||
def __exit__(self, *args: object) -> None: ...
|
||||
def __exit__(self, *args: Unused) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
|
||||
@overload
|
||||
@@ -997,7 +998,7 @@ if sys.version_info >= (3, 8):
|
||||
def __init__(self, path: str | None, cookie: _T, remove_dll_directory: Callable[[_T], object]) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(self, *args: object) -> None: ...
|
||||
def __exit__(self, *args: Unused) -> None: ...
|
||||
|
||||
def add_dll_directory(path: str) -> _AddedDllDirectory: ...
|
||||
if sys.platform == "linux":
|
||||
|
||||
Reference in New Issue
Block a user