Improve paramiko.win_pageant stubs (#8671)

This commit is contained in:
Kevin Kirsche
2022-09-10 18:10:14 -04:00
committed by GitHub
parent ed29fc5557
commit 525d122448

View File

@@ -1,14 +1,17 @@
import ctypes
import sys
from typing_extensions import Literal, TypeAlias
if sys.platform == "win32":
win32con_WM_COPYDATA: int
def can_talk_to_agent(): ...
def can_talk_to_agent() -> bool: ...
ULONG_PTR: TypeAlias = ctypes.c_uint64 | ctypes.c_uint32
class COPYDATASTRUCT(ctypes.Structure): ...
class PageantConnection:
def __init__(self) -> None: ...
def send(self, data: bytes) -> None: ...
def recv(self, n: int) -> bytes: ...
def recv(self, n: int) -> Literal[""] | bytes: ...
def close(self) -> None: ...