jid: reorder properties for mypy
don’t ask
This commit is contained in:
parent
f1b429199f
commit
95b034797f
1 changed files with 14 additions and 14 deletions
|
@ -350,31 +350,23 @@ class JID:
|
|||
if self._resource
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue