Daniel Brötzmann pushed to branch master at gajim / python-nbxmpp


Commits:
d62ac238 by wurstsalat at 2025-02-15T14:11:56+01:00
cq: Improve type annotations for Tune and Location

- - - - -


2 changed files:

- nbxmpp/modules/location.py
- nbxmpp/modules/tune.py


Changes:

=====================================
nbxmpp/modules/location.py
=====================================
@@ -80,7 +80,7 @@ class Location(BaseModule):
         properties.pubsub_event = pubsub_event
 
     @iq_request_task
-    def set_location(self, data: LocationData):
+    def set_location(self, data: LocationData | None):
         task = yield
 
         item = Node("geoloc", {"xmlns": Namespace.LOCATION})


=====================================
nbxmpp/modules/tune.py
=====================================
@@ -85,7 +85,7 @@ class Tune(BaseModule):
         properties.pubsub_event = pubsub_event
 
     @iq_request_task
-    def set_tune(self, data: TuneData):
+    def set_tune(self, data: TuneData | None):
         task = yield
 
         item = Node("tune", {"xmlns": Namespace.TUNE})



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/d62ac238bfc50e04c104dd25291b8e81431fedab

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/d62ac238bfc50e04c104dd25291b8e81431fedab
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]

Reply via email to