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

View File

@@ -33,7 +33,7 @@ error = OSError
if sys.platform != "linux" and sys.platform != "win32":
# BSD only
class kevent(object):
class kevent:
data: Any
fflags: int
filter: int
@@ -50,7 +50,7 @@ if sys.platform != "linux" and sys.platform != "win32":
udata: Any = ...,
) -> None: ...
# BSD only
class kqueue(object):
class kqueue:
closed: bool
def __init__(self) -> None: ...
def close(self) -> None: ...
@@ -100,7 +100,7 @@ if sys.platform != "linux" and sys.platform != "win32":
KQ_NOTE_WRITE: int
if sys.platform == "linux":
class epoll(object):
class epoll:
def __init__(self, sizehint: int = ..., flags: int = ...) -> None: ...
def __enter__(self: Self) -> Self: ...
def __exit__(