Commit a4d0ad81 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

JID: Correct bare return type

bare can never be None, its at least the domain.
parent 8d8c8f22
......@@ -683,7 +683,7 @@ class JID:
return idna_encode(self.domain)
def bare(self) -> Optional[str]:
def bare(self) -> str:
if self.localpart is not None:
return f'{self.localpart}@{self.domain}'
return self.domain
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