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

Incorrect return type of consume() method. #3

Open
olii opened this issue Mar 23, 2021 · 1 comment · Fixed by baodrate/types-pika#1 · May be fixed by #4
Open

Incorrect return type of consume() method. #3

olii opened this issue Mar 23, 2021 · 1 comment · Fixed by baodrate/types-pika#1 · May be fixed by #4

Comments

@olii
Copy link

olii commented Mar 23, 2021

def consume(
self,
queue: str,
auto_ack: bool = ...,
exclusive: bool = ...,
arguments: Optional[Mapping[str, Any]] = ...,
inactivity_timeout: Optional[float] = ...,
) -> None: ...

This returns a generator that yields tuple(pika.spec.Basic.Deliver, pika.spec.BasicProperties, bytes) so it should be:

typing.Iterator[tuple(pika.spec.Basic.Deliver, pika.spec.BasicProperties, bytes)]
@andersk andersk linked a pull request Aug 10, 2021 that will close this issue
@andersk
Copy link

andersk commented Aug 10, 2021

Opened #4 to fix this.

andersk added a commit to andersk/pika-stubs that referenced this issue Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants