mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 03:56:16 +00:00
Why: MeshCore.subscribe typed callbacks as Callable[[Event], Coroutine[...]] (async only), while EventDispatcher.subscribe typed them as Callable[[Event], Union[None, asyncio.Future]] (sync or async). Type-checkers flag any sync handler passed through MeshCore.subscribe. Fix: align the annotation to match EventDispatcher's union type; remove unused Coroutine import. Refs: Forensics report finding R05