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

Incomplete type for BlockingConnection adapter __init__ parameters #7

Open
baodrate opened this issue Aug 31, 2021 · 0 comments
Open

Comments

@baodrate
Copy link

The type of the BlockingConnection.__init__ parameters param is Optional[connection.Parameters]:

class BlockingConnection:
def __init__(
self,
parameters: Optional[connection.Parameters] = ...,
_impl_class: Optional[Any] = ...,

But according to pika docs it should be "Connection parameters instance or non-empty sequence of them" i.e. Union[pika.connection.Parameters, Sequence[pika.connection.Parameters]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant