diff options
author | Maxime Buquet <pep@bouah.net> | 2022-08-21 12:22:17 +0000 |
---|---|---|
committer | Maxime Buquet <pep@bouah.net> | 2022-08-21 12:22:17 +0000 |
commit | 6904ae63f5c7cab138558aa55bf126ffee7255c3 (patch) | |
tree | f217acf7c3c8eeee67d3e8b706a2e8ad4db6ed1b | |
parent | 1f47acaec13f30832fcfb56fc45843e90ad27673 (diff) | |
parent | 1caada197ab92cfcd53b8dff8982be235f129047 (diff) | |
download | slixmpp-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.py | 4 |
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() |