From 1882c38b8129357b98181625cf8784e6eada04ba Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Sun, 2 Jul 2023 12:18:07 -0400 Subject: [PATCH] Fix type of frame in channel cancel callback --- pika-stubs/channel.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pika-stubs/channel.pyi b/pika-stubs/channel.pyi index 7dd4c46..a563131 100644 --- a/pika-stubs/channel.pyi +++ b/pika-stubs/channel.pyi @@ -22,7 +22,7 @@ _OnBasicConsumeCallback = Callable[[frame.Method[spec.Basic.ConsumeOk]], None] _OnBasicGetCallback = Callable[[Channel, spec.Basic.GetOk, spec.BasicProperties, bytes], None] _OnBasicRecoverCallback = Callable[[frame.Method[spec.Basic.RecoverOk]], None] _OnBasicQosCallback = Callable[[frame.Method[spec.Basic.QosOk]], None] -_OnBasicCancelCallback = Callable[[frame.Method[spec.Basic.CancelOk]], None] +_OnBasicCancelCallback = Callable[[frame.Method[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]