summaryrefslogtreecommitdiff
path: root/jwt/types.py
diff options
context:
space:
mode:
authorViicos <65306057+Viicos@users.noreply.github.com>2023-01-03 14:22:28 +0100
committerGitHub <noreply@github.com>2023-01-03 19:22:28 +0600
commit45fff3ae19ae2930f92929e48d4ad45f41502f31 (patch)
treefda19685dac355ce8624fbfa35aabd2052e71439 /jwt/types.py
parent701e8d9d3b8389e13ad6371a331e600b503c2550 (diff)
downloadpyjwt-45fff3ae19ae2930f92929e48d4ad45f41502f31.tar.gz
Add more types (#843)
* Add return types in `JWKSetCache` * Add types for hash algorithms * Add missing type annotation in `ECAlgorithm`
Diffstat (limited to 'jwt/types.py')
-rw-r--r--jwt/types.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/jwt/types.py b/jwt/types.py
index 830b185..7d99352 100644
--- a/jwt/types.py
+++ b/jwt/types.py
@@ -1,3 +1,5 @@
-from typing import Any, Dict
+from typing import Any, Callable, Dict
JWKDict = Dict[str, Any]
+
+HashlibHash = Callable[..., Any]