From 5db7bd6283b9720a05ed8f62e359ea2a1c96184a Mon Sep 17 00:00:00 2001 From: Bao Trinh Date: Mon, 21 Mar 2022 10:52:02 -0500 Subject: [PATCH] consumer_tag should be str --- pika-stubs/spec.pyi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pika-stubs/spec.pyi b/pika-stubs/spec.pyi index 85d730b..4900d20 100644 --- a/pika-stubs/spec.pyi +++ b/pika-stubs/spec.pyi @@ -667,8 +667,8 @@ class Basic(amqp_object.Class): INDEX: Literal[0x003C0015] NAME: Literal["Basic.ConsumeOk"] - consumer_tag: int | None = ... - def __init__(self, consumer_tag: int | None = ...) -> None: ... + consumer_tag: str | None = ... + def __init__(self, consumer_tag: str | None = ...) -> None: ... @property def synchronous(self) -> bool: ... def decode(self, encoded: bytes, offset: int = ...) -> Basic.ConsumeOk: ... @@ -678,9 +678,9 @@ class Basic(amqp_object.Class): INDEX: Literal[0x003C001E] NAME: Literal["Basic.Cancel"] - consumer_tag: int | None = ... + consumer_tag: str | None = ... nowait: bool = ... - def __init__(self, consumer_tag: int | None = ..., nowait: bool = ...) -> None: ... + def __init__(self, consumer_tag: str | None = ..., nowait: bool = ...) -> None: ... @property def synchronous(self) -> bool: ... def decode(self, encoded: bytes, offset: int = ...) -> Basic.Cancel: ... @@ -690,8 +690,8 @@ class Basic(amqp_object.Class): INDEX: Literal[0x003C001F] NAME: Literal["Basic.CancelOk"] - consumer_tag: int | None = ... - def __init__(self, consumer_tag: int | None = ...) -> None: ... + consumer_tag: str | None = ... + def __init__(self, consumer_tag: str | None = ...) -> None: ... @property def synchronous(self) -> bool: ... def decode(self, encoded: bytes, offset: int = ...) -> Basic.CancelOk: ...