Use PEP 570 syntax in third party stubs (#11554)

This commit is contained in:
Shantanu
2024-03-10 06:11:43 -07:00
committed by GitHub
parent f94bbfbcc4
commit 88fa182253
97 changed files with 625 additions and 632 deletions

View File

@@ -30,7 +30,7 @@ class Curl:
def errstr(self) -> str: ...
def duphandle(self) -> Self: ...
def errstr_raw(self) -> bytes: ...
def set_ca_certs(self, __value: bytes | str) -> None: ...
def set_ca_certs(self, value: bytes | str, /) -> None: ...
@final
class CurlMulti:
@@ -43,7 +43,7 @@ class CurlMulti:
def select(self, timeout: float) -> int: ...
def info_read(self, max_objects: int = ...) -> tuple[int, list[Incomplete], list[Incomplete]]: ...
def socket_action(self, sockfd: int, ev_bitmask: int) -> tuple[int, int]: ...
def assign(self, __sockfd: int, __socket: Incomplete) -> Incomplete: ...
def assign(self, sockfd: int, socket: Incomplete, /) -> Incomplete: ...
def socket_all(self) -> tuple[int, int]: ...
def timeout(self) -> int: ...