mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-14 05:06:53 +00:00
Fix typing on MC top level subscribe method
This commit is contained in:
@@ -105,7 +105,7 @@ class MeshCore:
|
|||||||
self.dispatcher.running = False
|
self.dispatcher.running = False
|
||||||
self.dispatcher._task.cancel()
|
self.dispatcher._task.cancel()
|
||||||
|
|
||||||
def subscribe(self, event_type: EventType, callback, attribute_filters: Optional[Dict[str, Any]] = None):
|
def subscribe(self, event_type: Union[EventType, None], callback, attribute_filters: Optional[Dict[str, Any]] = None):
|
||||||
"""
|
"""
|
||||||
Subscribe to events using EventType enum with optional attribute filtering
|
Subscribe to events using EventType enum with optional attribute filtering
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user