Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/asyncio/protocols.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class BaseProtocol:

class Protocol(BaseProtocol):
# Need annotation or mypy will complain about 'Cannot determine type of "__slots__" in base class'
__slots__: tuple[()] = ()
__slots__: tuple[str, ...] = ()
def data_received(self, data: bytes) -> None: ...
def eof_received(self) -> bool | None: ...

Expand All @@ -35,7 +35,7 @@ class DatagramProtocol(BaseProtocol):
def error_received(self, exc: Exception) -> None: ...

class SubprocessProtocol(BaseProtocol):
__slots__: tuple[()] = ()
__slots__: tuple[str, ...] = ()
def pipe_data_received(self, fd: int, data: bytes) -> None: ...
def pipe_connection_lost(self, fd: int, exc: Exception | None) -> None: ...
def process_exited(self) -> None: ...
4 changes: 2 additions & 2 deletions stubs/protobuf/google/protobuf/internal/well_known_types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ _StructValue: TypeAlias = struct_pb2.Struct | struct_pb2.ListValue | str | float
_StructValueArg: TypeAlias = _StructValue | Mapping[str, _StructValueArg] | Sequence[_StructValueArg]

class Struct:
__slots__: tuple[()] = ()
__slots__: tuple[str, ...] = ()
def __getitem__(self, key: str) -> _StructValue: ...
def __setitem__(self, key: str, value: _StructValueArg) -> None: ...
def __delitem__(self, key: str) -> None: ...
Expand All @@ -81,7 +81,7 @@ class Struct:
def update(self, dictionary: SupportsItems[str, _StructValueArg]) -> None: ...

class ListValue:
__slots__: tuple[()] = ()
__slots__: tuple[str, ...] = ()
def __len__(self) -> int: ...
def append(self, value: _StructValue) -> None: ...
def extend(self, elem_seq: Iterable[_StructValue]) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion stubs/protobuf/google/protobuf/message.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DecodeError(Error): ...
class EncodeError(Error): ...

class Message:
__slots__: tuple[()] = ()
__slots__: tuple[str, ...] = ()
DESCRIPTOR: Descriptor | _upb_Descriptor
def __deepcopy__(self, memo: Any = None) -> Self: ...
def __eq__(self, other_msg): ...
Expand Down