From 8dc28eb310a3ae1ccb2b57dafe8681e3d7b4f84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 27 Oct 2025 19:11:20 +0200 Subject: [PATCH] Annotate pycurl's getinfo() and getinfo_raw() getinfo and getinfo_raw docs: http://pycurl.io/docs/latest/curlobject.html#pycurl.Curl.getinfo --- stubs/pycurl/pycurl.pyi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stubs/pycurl/pycurl.pyi b/stubs/pycurl/pycurl.pyi index 36a44e6ecbe2..fced71d4501d 100644 --- a/stubs/pycurl/pycurl.pyi +++ b/stubs/pycurl/pycurl.pyi @@ -1,5 +1,6 @@ import sys from _typeshed import Incomplete +from collections.abc import Sequence from typing import Final, final from typing_extensions import Self @@ -22,8 +23,8 @@ 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): ... + def getinfo(self, info: int) -> int | float | str | list[str] | list[Sequence[tuple[str, str]]]: ... + def getinfo_raw(self, info: int) -> int | float | bytes | list[bytes] | list[Sequence[tuple[bytes, bytes]]]: ... def reset(self) -> None: ... def unsetopt(self, option: int): ... def pause(self, bitmask): ...