mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-26 10:40:33 +08:00
stdlib: add __slots__ (#14611)
This commit is contained in:
@@ -1300,6 +1300,7 @@ class _SendableFile(Protocol):
|
||||
# def fileno(self) -> int: ...
|
||||
|
||||
class socket(_socket.socket):
|
||||
__slots__ = ["__weakref__", "_io_refs", "_closed"]
|
||||
def __init__(
|
||||
self, family: AddressFamily | int = -1, type: SocketKind | int = -1, proto: int = -1, fileno: int | None = None
|
||||
) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user