panini icon indicating copy to clipboard operation
panini copied to clipboard

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

Open oleksii-volotskov opened this issue 4 years ago • 1 comments

    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]]

oleksii-volotskov avatar Jul 22 '21 13:07 oleksii-volotskov

Added to backlog

artas728 avatar Feb 07 '22 09:02 artas728