mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-18 14:29:47 +08:00
Never explicitly inherit from object in Python 3-only stubs (#6777)
This commit is contained in:
@@ -18,7 +18,7 @@ def version_info() -> tuple[int, str, int, str, int, str, int, str, tuple[str, .
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
class Curl(object):
|
||||
class Curl:
|
||||
def close(self) -> None: ...
|
||||
def setopt(self, option: int, value: Any) -> None: ...
|
||||
def setopt_string(self, option: int, value: str) -> None: ...
|
||||
@@ -34,7 +34,7 @@ class Curl(object):
|
||||
# TODO(MichalPokorny): wat?
|
||||
USERPWD: int
|
||||
|
||||
class CurlMulti(object):
|
||||
class CurlMulti:
|
||||
def close(self) -> None: ...
|
||||
def add_handle(self, obj: Curl) -> None: ...
|
||||
def remove_handle(self, obj: Curl) -> None: ...
|
||||
@@ -44,7 +44,7 @@ class CurlMulti(object):
|
||||
def info_read(self, max_objects: int = ...) -> tuple[int, list[Any], list[Any]]: ...
|
||||
def socket_action(self, sockfd: int, ev_bitmask: int) -> tuple[int, int]: ...
|
||||
|
||||
class CurlShare(object):
|
||||
class CurlShare:
|
||||
def close(self) -> None: ...
|
||||
def setopt(self, option: int, value: Any) -> Any: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user