File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
stubs/protobuf/google/protobuf Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class BaseProtocol:
1414
1515class Protocol (BaseProtocol ):
1616 # Need annotation or mypy will complain about 'Cannot determine type of "__slots__" in base class'
17- __slots__ : tuple [() ] = ()
17+ __slots__ : tuple [str , ... ] = ()
1818 def data_received (self , data : bytes ) -> None : ...
1919 def eof_received (self ) -> bool | None : ...
2020
@@ -35,7 +35,7 @@ class DatagramProtocol(BaseProtocol):
3535 def error_received (self , exc : Exception ) -> None : ...
3636
3737class SubprocessProtocol (BaseProtocol ):
38- __slots__ : tuple [() ] = ()
38+ __slots__ : tuple [str , ... ] = ()
3939 def pipe_data_received (self , fd : int , data : bytes ) -> None : ...
4040 def pipe_connection_lost (self , fd : int , exc : Exception | None ) -> None : ...
4141 def process_exited (self ) -> None : ...
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ _StructValue: TypeAlias = struct_pb2.Struct | struct_pb2.ListValue | str | float
6767_StructValueArg : TypeAlias = _StructValue | Mapping [str , _StructValueArg ] | Sequence [_StructValueArg ]
6868
6969class Struct :
70- __slots__ : tuple [() ] = ()
70+ __slots__ : tuple [str , ... ] = ()
7171 def __getitem__ (self , key : str ) -> _StructValue : ...
7272 def __setitem__ (self , key : str , value : _StructValueArg ) -> None : ...
7373 def __delitem__ (self , key : str ) -> None : ...
@@ -81,7 +81,7 @@ class Struct:
8181 def update (self , dictionary : SupportsItems [str , _StructValueArg ]) -> None : ...
8282
8383class ListValue :
84- __slots__ : tuple [() ] = ()
84+ __slots__ : tuple [str , ... ] = ()
8585 def __len__ (self ) -> int : ...
8686 def append (self , value : _StructValue ) -> None : ...
8787 def extend (self , elem_seq : Iterable [_StructValue ]) -> None : ...
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class DecodeError(Error): ...
1212class EncodeError (Error ): ...
1313
1414class Message :
15- __slots__ : tuple [() ] = ()
15+ __slots__ : tuple [str , ... ] = ()
1616 DESCRIPTOR : Descriptor | _upb_Descriptor
1717 def __deepcopy__ (self , memo : Any = None ) -> Self : ...
1818 def __eq__ (self , other_msg ): ...
You can’t perform that action at this time.
0 commit comments