Skip to content

Commit e389c7b

Browse files
authored
Annotate pycurl's getinfo() and getinfo_raw() (#14929)
1 parent 57ab037 commit e389c7b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

stubs/pycurl/pycurl.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from _typeshed import Incomplete
3-
from typing import Final, final
3+
from typing import Any, Final, final
44
from typing_extensions import Self
55

66
version: str
@@ -22,8 +22,10 @@ class Curl:
2222
def perform(self) -> None: ...
2323
def perform_rb(self) -> bytes: ...
2424
def perform_rs(self) -> str: ...
25-
def getinfo(self, info): ...
26-
def getinfo_raw(self, info): ...
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: ...
2729
def reset(self) -> None: ...
2830
def unsetopt(self, option: int): ...
2931
def pause(self, bitmask): ...

0 commit comments

Comments
 (0)