Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
0ae673b9 by Philipp Hörist at 2026-06-05T09:27:13+02:00
cq: Protocol: Fix type annotations for getTo() and getFrom()
- - - - -
1 changed file:
- nbxmpp/protocol.py
Changes:
=====================================
nbxmpp/protocol.py
=====================================
@@ -1054,7 +1054,7 @@ class Protocol(Node):
def isResult(self) -> bool:
return self.getAttr("type") == "result"
- def getTo(self):
+ def getTo(self) -> JID | None:
"""
Return value of the 'to' attribute
"""
@@ -1064,7 +1064,7 @@ class Protocol(Node):
pass
return None
- def getFrom(self):
+ def getFrom(self) -> JID | None:
"""
Return value of the 'from' attribute
"""
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/0ae673b90514c9240dca97b08b5da34fcdc2a76d
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/0ae673b90514c9240dca97b08b5da34fcdc2a76d
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]