xep_0317: Fix compatibility with python < 3.9
This commit is contained in:
parent
b8205a9ae4
commit
66d552d057
@ -1,5 +1,6 @@
|
||||
from slixmpp import Presence
|
||||
from slixmpp.xmlstream import ElementBase, register_stanza_plugin
|
||||
from typing import List, Tuple
|
||||
|
||||
NS = 'urn:xmpp:hats:0'
|
||||
|
||||
@ -26,7 +27,7 @@ class Hats(ElementBase):
|
||||
namespace = NS
|
||||
plugin_attrib = 'hats'
|
||||
|
||||
def add_hats(self, data: list[tuple[str, str]]) -> None:
|
||||
def add_hats(self, data: List[Tuple[str, str]]) -> None:
|
||||
for uri, title in data:
|
||||
hat = Hat()
|
||||
hat["uri"] = uri
|
||||
|
Loading…
Reference in New Issue
Block a user