Skip to content

Commit

Permalink
Fix type of frame for add_on_cancel_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 2, 2023
1 parent ccde5ce commit 109508c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pika-stubs/channel.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ _OnBasicGetCallback = Callable[[Channel, spec.Basic.GetOk, spec.BasicProperties,
_OnBasicRecoverCallback = Callable[[frame.Method[spec.Basic.RecoverOk]], None]
_OnBasicQosCallback = Callable[[frame.Method[spec.Basic.QosOk]], None]
_OnBasicCancelCallback = Callable[[frame.Method[spec.Basic.CancelOk]], None]
_OnCancelCallback = Callable[[spec.Basic.Cancel], None]
_OnCloseCallback = Callable[[Channel, Exception], None]
_OnExchangeBindCallback = Callable[[frame.Method[spec.Exchange.BindOk]], None]
_OnExchangeDeclareCallback = Callable[[frame.Method[spec.Exchange.DeclareOk]], None]
Expand Down Expand Up @@ -54,7 +55,7 @@ class Channel:
def __init__(self, connection: connection_.Connection, channel_number: int, on_open_callback: _OnOpenCallback) -> None: ...
def __int__(self) -> int: ...
def add_callback(self, callback: Callable[..., Any], replies: Sequence[Any], one_shot: bool = ...) -> None: ...
def add_on_cancel_callback(self, callback: _OnBasicCancelCallback) -> None: ...
def add_on_cancel_callback(self, callback: _OnCancelCallback) -> None: ...
def add_on_close_callback(self, callback: _OnCloseCallback) -> None: ...
def add_on_flow_callback(self, callback: _OnFlowCallback) -> None: ...
def add_on_return_callback(self, callback: _OnReturnCallback) -> None: ...
Expand Down

0 comments on commit 109508c

Please sign in to comment.