Skip to content

Commit 8dc28eb

Browse files
committed
Annotate pycurl's getinfo() and getinfo_raw()
getinfo and getinfo_raw docs: http://pycurl.io/docs/latest/curlobject.html#pycurl.Curl.getinfo
1 parent 16f766b commit 8dc28eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stubs/pycurl/pycurl.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
22
from _typeshed import Incomplete
3+
from collections.abc import Sequence
34
from typing import Final, final
45
from typing_extensions import Self
56

@@ -22,8 +23,8 @@ class Curl:
2223
def perform(self) -> None: ...
2324
def perform_rb(self) -> bytes: ...
2425
def perform_rs(self) -> str: ...
25-
def getinfo(self, info): ...
26-
def getinfo_raw(self, info): ...
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]]]: ...
2728
def reset(self) -> None: ...
2829
def unsetopt(self, option: int): ...
2930
def pause(self, bitmask): ...

0 commit comments

Comments
 (0)