Skip to content

Commit

Permalink
refacto(api_jwt): precise typing
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Maurin <julian.maurin.perso@pm.me>

Update jwt/api_jwt.py

Co-authored-by: Julian Maurin <julian.maurin.perso@pm.me>

fix(jwt/api_jwt.py): backport future annotations
  • Loading branch information
auvipy authored and JulianMaurin committed Jul 22, 2022
1 parent 07428f2 commit f86b50c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jwt/api_jwt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import json
import warnings
from calendar import timegm
Expand Down Expand Up @@ -76,7 +78,7 @@ def decode_complete(
detached_payload: Optional[bytes] = None,
# passthrough arguments to _validate_claims
# consider putting in options
audience: Optional[Union[str, Iterable]] = None,
audience: Optional[Union[str, Iterable[str]]] = None,
issuer: Optional[str] = None,
leeway: Union[int, float, timedelta] = 0,
# kwargs
Expand Down Expand Up @@ -150,7 +152,7 @@ def decode(
detached_payload: Optional[bytes] = None,
# passthrough arguments to _validate_claims
# consider putting in options
audience: Optional[Union[str, Iterable]] = None,
audience: Optional[Union[str, Iterable[str]]] = None,
issuer: Optional[str] = None,
leeway: Union[int, float, timedelta] = 0,
# kwargs
Expand Down

0 comments on commit f86b50c

Please sign in to comment.