You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] matching_status incorrectly typed as bool #787
matching_status on both publishers and queriers is typed as bool in the docs and python stubs, but in reality it is an object with a boolean matching member variable.
This means that doing a check on if publisher.matching_status will always return True, which is misleading.
To reproduce
import zenoh
if __name__ == '__main__':
with zenoh.open(zenoh.Config()) as session:
pub = session.declare_publisher("example/topic")
if pub.matching_status:
print("Match")
else:
print("No match")
With no corresponding subscriber, this prints "Match" where it should be "No match". Using if pub.matching_status.matching works correctly.
Activity
DenisBiryukov91 commentedon Nov 4, 2026
Fixed by #794