Describe the bug
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.
System info
Reproduced on Zenoh version 1.9.0 and 1.10.1
Describe the bug
matching_status on both publishers and queriers is typed as
boolin the docs and python stubs, but in reality it is an object with a booleanmatchingmember variable.This means that doing a check on
if publisher.matching_statuswill always return True, which is misleading.To reproduce
With no corresponding subscriber, this prints "Match" where it should be "No match". Using
if pub.matching_status.matchingworks correctly.System info
Reproduced on Zenoh version 1.9.0 and 1.10.1