Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

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

Description

@oleksii-volotskov
    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]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions