diff options
author | mathieui <mathieui@mathieui.net> | 2021-07-05 22:28:50 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-07-05 22:28:50 +0200 |
commit | 0971bab30ae07d7ea11d9838e4149135e5fcb787 (patch) | |
tree | b9db8d7abafaf9626d2d7ea243656a559fac5376 | |
parent | ed3bb878a75c84c2be74d1212226298967ee26e5 (diff) | |
download | slixmpp-0971bab30ae07d7ea11d9838e4149135e5fcb787.tar.gz slixmpp-0971bab30ae07d7ea11d9838e4149135e5fcb787.tar.bz2 slixmpp-0971bab30ae07d7ea11d9838e4149135e5fcb787.tar.xz slixmpp-0971bab30ae07d7ea11d9838e4149135e5fcb787.zip |
matcher: fix idsender typing
-rw-r--r-- | slixmpp/xmlstream/matcher/idsender.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/slixmpp/xmlstream/matcher/idsender.py b/slixmpp/xmlstream/matcher/idsender.py index 9b12623d..572f9d87 100644 --- a/slixmpp/xmlstream/matcher/idsender.py +++ b/slixmpp/xmlstream/matcher/idsender.py @@ -10,6 +10,8 @@ from slixmpp.xmlstream.stanzabase import StanzaBase from slixmpp.jid import JID from slixmpp.types import TypedDict +from typing import Dict + class CriteriaType(TypedDict): self: JID @@ -37,13 +39,13 @@ class MatchIDSender(MatcherBase): selfjid = self._criteria['self'] peerjid = self._criteria['peer'] - allowed = {} + allowed: Dict[str, bool] = {} allowed[''] = True allowed[selfjid.bare] = True - allowed[selfjid.host] = True + allowed[selfjid.domain] = True allowed[peerjid.full] = True allowed[peerjid.bare] = True - allowed[peerjid.host] = True + allowed[peerjid.domain] = True _from = xml['from'] |