Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type of frame in channel cancel callback #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
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