mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Improve paramiko.win_pageant stubs (#8671)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user