Fix typing on MC top level subscribe method

This commit is contained in:
Alex Wolden 2025-05-12 21:52:28 -07:00
parent 9563a871f1
commit b3cf2ba7b4

View file

@ -105,7 +105,7 @@ class MeshCore:
self.dispatcher.running = False
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