Teekeks / pyTwitchAPI

A Python 3.7 compatible implementation of the Twitch API, EventSub, PubSub and Chat
https://pytwitchapi.dev
MIT License
254 stars 38 forks source link

Fix type hint of PubSub listen_* functions and add type check for the given callback function #179

Closed Teekeks closed 1 year ago

Teekeks commented 1 year ago

Some of the `listen_** functions in PubSub still have the old type hint. Additionally we should check if the given callback function is valid (async and takes 2 parameter)