diff options
author | mathieui <mathieui@mathieui.net> | 2021-04-20 22:14:01 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-06-28 21:01:21 +0200 |
commit | 4931e7e6041ff6c59817d6807b0776a8994d0377 (patch) | |
tree | b9b891298abdb38299ff02c3c1cc5d0bdd30dd2c /slixmpp/types.py | |
parent | 9f01d368c008f8775a991ddf8226a15735bc8303 (diff) | |
download | slixmpp-4931e7e6041ff6c59817d6807b0776a8994d0377.tar.gz slixmpp-4931e7e6041ff6c59817d6807b0776a8994d0377.tar.bz2 slixmpp-4931e7e6041ff6c59817d6807b0776a8994d0377.tar.xz slixmpp-4931e7e6041ff6c59817d6807b0776a8994d0377.zip |
refactor: type the resolver
almost perfect, except for python < 3.9 making it so we can’t have nice
things.
Diffstat (limited to 'slixmpp/types.py')
-rw-r--r-- | slixmpp/types.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/slixmpp/types.py b/slixmpp/types.py index 453d25e3..2a25f7ad 100644 --- a/slixmpp/types.py +++ b/slixmpp/types.py @@ -16,11 +16,13 @@ try: from typing import ( Literal, TypedDict, + Protocol, ) except ImportError: from typing_extensions import ( Literal, TypedDict, + Protocol, ) from slixmpp.jid import JID |