mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
Annotate pycurl's getinfo() and getinfo_raw() (#14929)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user