mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Never explicitly inherit from object in Python 3-only stubs (#6777)
This commit is contained in:
@@ -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__(
|
||||
|
||||
Reference in New Issue
Block a user