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

Type for 'async def subscribe_new_subject()' throw the warning #190

Open
oleksii-volotskov opened this issue Jul 22, 2021 · 1 comment
Open

Comments

@oleksii-volotskov
Copy link
Collaborator

oleksii-volotskov commented Jul 22, 2021

    async def subscribe_new_subject(
        self,
        subject: str,
        callback: CoroutineType,
        init_subscription=False,
        is_async=False,
        data_type=None
    ):

getting the warning:
Screenshot 2021-07-22 at 16 49 59

The valid one is

callback: Callable[[Msg], Awaitable[None]]

@artas728
Copy link
Collaborator

artas728 commented Feb 7, 2022

Added to backlog

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

2 participants