Annotate pycurl's getinfo() and getinfo_raw() (#14929)

This commit is contained in:
Pēteris Caune
2025-10-31 17:55:59 +02:00
committed by GitHub
parent 57ab037458
commit e389c7b2a0
+5 -3
View File
@@ -1,6 +1,6 @@
import sys
from _typeshed import Incomplete
from typing import Final, final
from typing import Any, Final, final
from typing_extensions import Self
version: str
@@ -22,8 +22,10 @@ class Curl:
def perform(self) -> None: ...
def perform_rb(self) -> bytes: ...
def perform_rs(self) -> str: ...
def getinfo(self, info): ...
def getinfo_raw(self, info): ...
# For getinfo and getinfo_raw, the exact return type depends on the passed value:
# http://pycurl.io/docs/latest/curlobject.html#pycurl.Curl.getinfo
def getinfo(self, info: int) -> Any: ...
def getinfo_raw(self, info: int) -> Any: ...
def reset(self) -> None: ...
def unsetopt(self, option: int): ...
def pause(self, bitmask): ...