diff options
author | mathieui <mathieui@mathieui.net> | 2021-07-05 22:29:37 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-07-05 22:42:18 +0200 |
commit | af958fd1fe46d4a3f523ee3f4f103f15430b5fc2 (patch) | |
tree | 0b3f93b00544ba7dc6620a7aba271786db67f9fd /slixmpp/stanza/handshake.py | |
parent | 0971bab30ae07d7ea11d9838e4149135e5fcb787 (diff) | |
download | slixmpp-af958fd1fe46d4a3f523ee3f4f103f15430b5fc2.tar.gz slixmpp-af958fd1fe46d4a3f523ee3f4f103f15430b5fc2.tar.bz2 slixmpp-af958fd1fe46d4a3f523ee3f4f103f15430b5fc2.tar.xz slixmpp-af958fd1fe46d4a3f523ee3f4f103f15430b5fc2.zip |
stanza: fix a bunch of type errors
Diffstat (limited to 'slixmpp/stanza/handshake.py')
-rw-r--r-- | slixmpp/stanza/handshake.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slixmpp/stanza/handshake.py b/slixmpp/stanza/handshake.py index c58f69aa..70f890be 100644 --- a/slixmpp/stanza/handshake.py +++ b/slixmpp/stanza/handshake.py @@ -4,6 +4,7 @@ # See the file LICENSE for copying permission. from slixmpp.xmlstream import StanzaBase +from typing import Optional class Handshake(StanzaBase): @@ -18,7 +19,7 @@ class Handshake(StanzaBase): def set_value(self, value: str): self.xml.text = value - def get_value(self) -> str: + def get_value(self) -> Optional[str]: return self.xml.text def del_value(self): |