Commit 95b03479 authored by mathieui's avatar mathieui

jid: reorder properties for mypy

don’t ask
parent f1b42919
...@@ -350,31 +350,23 @@ class JID: ...@@ -350,31 +350,23 @@ class JID:
if self._resource if self._resource
else self._bare) 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 @property
def bare(self) -> str: def bare(self) -> str:
return self._bare return self._bare
@property @property
def full(self) -> str: def node(self) -> str:
return self._full return self._node
@node.setter @node.setter
def node(self, value: str): def node(self, value: str):
self._node = _validate_node(value) self._node = _validate_node(value)
self._update_bare_full() self._update_bare_full()
@property
def domain(self) -> str:
return self._domain
@domain.setter @domain.setter
def domain(self, value: str): def domain(self, value: str):
self._domain = _validate_domain(value) self._domain = _validate_domain(value)
...@@ -388,11 +380,19 @@ class JID: ...@@ -388,11 +380,19 @@ class JID:
self._domain = domain self._domain = domain
self._update_bare_full() self._update_bare_full()
@property
def resource(self) -> str:
return self._resource
@resource.setter @resource.setter
def resource(self, value: str): def resource(self, value: str):
self._resource = _validate_resource(value) self._resource = _validate_resource(value)
self._update_bare_full() self._update_bare_full()
@property
def full(self) -> str:
return self._full
@full.setter @full.setter
def full(self, value: str): def full(self, value: str):
self._node, self._domain, self._resource = _parse_jid(value) self._node, self._domain, self._resource = _parse_jid(value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment