Never explicitly inherit from object in Python 3-only stubs (#6777)

This commit is contained in:
Alex Waygood
2022-01-02 06:24:48 +00:00
committed by GitHub
parent d43cd997a4
commit 505ea72641
35 changed files with 79 additions and 67 deletions
+3 -3
View File
@@ -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: ...