summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2022-08-21 12:22:17 +0000
committerMaxime Buquet <pep@bouah.net>2022-08-21 12:22:17 +0000
commit6904ae63f5c7cab138558aa55bf126ffee7255c3 (patch)
treef217acf7c3c8eeee67d3e8b706a2e8ad4db6ed1b
parent1f47acaec13f30832fcfb56fc45843e90ad27673 (diff)
parent1caada197ab92cfcd53b8dff8982be235f129047 (diff)
downloadslixmpp-6904ae63f5c7cab138558aa55bf126ffee7255c3.tar.gz
slixmpp-6904ae63f5c7cab138558aa55bf126ffee7255c3.tar.bz2
slixmpp-6904ae63f5c7cab138558aa55bf126ffee7255c3.tar.xz
slixmpp-6904ae63f5c7cab138558aa55bf126ffee7255c3.zip
Merge branch 'optional-setters' into 'master'
JID: Make node and resource setters accept None See merge request poezio/slixmpp!214
-rw-r--r--slixmpp/jid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/jid.py b/slixmpp/jid.py
index d02f98a3..c705a422 100644
--- a/slixmpp/jid.py
+++ b/slixmpp/jid.py
@@ -368,7 +368,7 @@ class JID:
return self._node
@node.setter
- def node(self, value: str):
+ def node(self, value: Optional[str]):
self._node = _validate_node(value)
self._update_bare_full()
@@ -386,7 +386,7 @@ class JID:
return self._resource
@resource.setter
- def resource(self, value: str):
+ def resource(self, value: Optional[str]):
self._resource = _validate_resource(value)
self._update_bare_full()