massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / asyncio / windows_utils.pyi
1 import sys
2 from _typeshed import Self
3 from types import TracebackType
4 from typing import Callable, Protocol, Type
5
6 class _WarnFunction(Protocol):
7     def __call__(self, message: str, category: Type[Warning] = ..., stacklevel: int = ..., source: PipeHandle = ...) -> None: ...
8
9 BUFSIZE: int
10 PIPE: int
11 STDOUT: int
12
13 def pipe(*, duplex: bool = ..., overlapped: tuple[bool, bool] = ..., bufsize: int = ...) -> tuple[int, int]: ...
14
15 class PipeHandle:
16     def __init__(self, handle: int) -> None: ...
17     def __repr__(self) -> str: ...
18     if sys.version_info >= (3, 8):
19         def __del__(self, _warn: _WarnFunction = ...) -> None: ...
20     else:
21         def __del__(self) -> None: ...
22     def __enter__(self: Self) -> Self: ...
23     def __exit__(self, t: type | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
24     @property
25     def handle(self) -> int: ...
26     def fileno(self) -> int: ...
27     def close(self, *, CloseHandle: Callable[[int], None] = ...) -> None: ...