Add __slots__ to third-party packages using stubdefaulter (#14619)

This commit is contained in:
Jelle Zijlstra
2025-08-21 15:38:13 -07:00
committed by GitHub
parent 573b57d8da
commit ca44e4c45d
135 changed files with 675 additions and 25 deletions
+6 -1
View File
@@ -9,6 +9,7 @@ bytechr: Callable[[float], bytes]
class CTypesType(type): ...
class CTypesData:
__slots__ = ["__weakref__"]
__metaclass__: Incomplete
__name__: str
def __init__(self, *args) -> None: ...
@@ -23,17 +24,21 @@ class CTypesData:
def __repr__(self, c_name: str | None = None): ...
class CTypesGenericPrimitive(CTypesData):
__slots__: list[str] = []
def __hash__(self) -> int: ...
class CTypesGenericArray(CTypesData):
__slots__: list[str] = []
def __iter__(self): ...
class CTypesGenericPtr(CTypesData):
__slots__ = ["_address", "_as_ctype_ptr"]
kind: str
def __nonzero__(self) -> bool: ...
def __bool__(self) -> bool: ...
class CTypesBaseStructOrUnion(CTypesData): ...
class CTypesBaseStructOrUnion(CTypesData):
__slots__ = ["_blob"]
class CTypesBackend:
PRIMITIVE_TYPES: Incomplete