mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
Add missing __slots__ to third-party packages (#15454)
This commit is contained in:
1 parent
9a9cc1834d
commit
b43fc8f6f3
11 files changed
+54
-2
No files matched your search
@@ -271,6 +271,7 @@ class RingBuffer:
|
||||
def size(self) -> int: ...
|
||||
|
||||
class Status:
|
||||
__slots__ = "_code"
|
||||
def __init__(self, code: int) -> None: ...
|
||||
@property
|
||||
def failure(self) -> bool: ...
|
||||
@@ -300,6 +301,7 @@ class Status:
|
||||
def client_zombie(self) -> bool: ...
|
||||
|
||||
class TransportState:
|
||||
__slots__ = "_code"
|
||||
def __init__(self, code: int) -> None: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
Reference in new issue
Block a user