Formatting + type hints

This commit is contained in:
Goffi 2026-04-27 15:45:40 +02:00
commit 610eac0718

View file

@ -1188,9 +1188,11 @@ class XEP_0277:
pass
else:
# other server, let's try to find a non PEP service there
d = defer.ensureDeferred(self.host.find_service_entity(
client, "pubsub", "service", parent_service
))
d = defer.ensureDeferred(
self.host.find_service_entity(
client, "pubsub", "service", parent_service
)
)
d.addCallback(lambda entity: entity or parent_service)
else:
# parent is already on a normal Pubsub service, we re-use it