Skip to content

Commit c6a84d2

Browse files
committed
Change the return value to Any
1 parent 8dc28eb commit c6a84d2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

stubs/pycurl/pycurl.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22
from _typeshed import Incomplete
3-
from collections.abc import Sequence
4-
from typing import Final, final
3+
from typing import Any, Final, final
54
from typing_extensions import Self
65

76
version: str
@@ -23,8 +22,10 @@ class Curl:
2322
def perform(self) -> None: ...
2423
def perform_rb(self) -> bytes: ...
2524
def perform_rs(self) -> str: ...
26-
def getinfo(self, info: int) -> int | float | str | list[str] | list[Sequence[tuple[str, str]]]: ...
27-
def getinfo_raw(self, info: int) -> int | float | bytes | list[bytes] | list[Sequence[tuple[bytes, bytes]]]: ...
25+
# For getinfo and getinfo_raw, the exact return type depends on the passed value:
26+
# http://pycurl.io/docs/latest/curlobject.html#pycurl.Curl.getinfo
27+
def getinfo(self, info: int) -> Any: ...
28+
def getinfo_raw(self, info: int) -> Any: ...
2829
def reset(self) -> None: ...
2930
def unsetopt(self, option: int): ...
3031
def pause(self, bitmask): ...

0 commit comments

Comments
 (0)