mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
Fix typing on MC top level subscribe method
This commit is contained in:
parent
9563a871f1
commit
b3cf2ba7b4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue