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

Mark methods accepting Connection instances as such #1645

Merged

Conversation

agateau-gg
Copy link
Contributor

In MaybeChannelBound, the __call__(), bind() and maybe_bind() methods takes a channel argument. The type annotation say this argument must be a Channel, but it goes through maybe_channel(), so it can also be a Connection. Update the annotation to accept both Channel and Connection.

In MaybeChannelBound, the `__call__()`, `bind()` and `maybe_bind()` methods
takes a channel argument. The type annotation say this argument must be a
Channel, but it goes through `maybe_channel()`, so it can also be a
Connection. Update the annotation to accept both Channel and Connection.
@agateau-gg agateau-gg force-pushed the improve-maybechannelbound-type-hints branch from 1fb7655 to 4be02d5 Compare January 19, 2023 18:06
@auvipy auvipy merged commit 08a9974 into celery:main Feb 2, 2023
@auvipy auvipy added this to the 5.3 milestone Feb 2, 2023
@agateau-gg agateau-gg deleted the improve-maybechannelbound-type-hints branch February 2, 2023 14:18
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

Successfully merging this pull request may close these issues.

None yet

2 participants