diff options
author | mathieui <mathieui@mathieui.net> | 2021-07-03 11:09:09 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-07-03 11:17:15 +0200 |
commit | 95b034797f07a9c9ca0041a12f1455114a98a21b (patch) | |
tree | ef18191fb3d56b82b2e165948dd097a025e5b335 | |
parent | f1b429199f553678e060cde3d283b660d53d1a7b (diff) | |
download | slixmpp-95b034797f07a9c9ca0041a12f1455114a98a21b.tar.gz slixmpp-95b034797f07a9c9ca0041a12f1455114a98a21b.tar.bz2 slixmpp-95b034797f07a9c9ca0041a12f1455114a98a21b.tar.xz slixmpp-95b034797f07a9c9ca0041a12f1455114a98a21b.zip |
jid: reorder properties for mypy
don’t ask
-rw-r--r-- | slixmpp/jid.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/slixmpp/jid.py b/slixmpp/jid.py index ee5ef987..c0143b40 100644 --- a/slixmpp/jid.py +++ b/slixmpp/jid.py @@ -351,30 +351,22 @@ class JID: else self._bare) @property - def node(self) -> str: - return self._node - - @property - def domain(self) -> str: - return self._domain - - @property - def resource(self) -> str: - return self._resource - - @property def bare(self) -> str: return self._bare @property - def full(self) -> str: - return self._full + def node(self) -> str: + return self._node @node.setter def node(self, value: str): self._node = _validate_node(value) self._update_bare_full() + @property + def domain(self) -> str: + return self._domain + @domain.setter def domain(self, value: str): self._domain = _validate_domain(value) @@ -388,11 +380,19 @@ class JID: self._domain = domain self._update_bare_full() + @property + def resource(self) -> str: + return self._resource + @resource.setter def resource(self, value: str): self._resource = _validate_resource(value) self._update_bare_full() + @property + def full(self) -> str: + return self._full + @full.setter def full(self, value: str): self._node, self._domain, self._resource = _parse_jid(value) |