Skip to content

Commit 868deba

Browse files
author
Alec Delaney
committed
Fix type hint for JWT.generate()
1 parent a0f2c39 commit 868deba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_jwt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ def validate(jwt: str) -> Tuple[str, dict]:
8686
@staticmethod
8787
def generate(
8888
claims: dict,
89-
private_key_data: Optional[str] = None,
89+
private_key_data: Optional[Tuple[int, int, int, int, int]] = None,
9090
algo: Optional[str] = None,
9191
headers: Optional[dict] = None,
9292
) -> str:
9393
"""Generates and returns a new JSON Web Token.
9494
9595
:param dict claims: JWT claims set
96-
:param str private_key_data: Decoded RSA private key data.
96+
:param tuple private_key_data: Decoded RSA private key data.
9797
:param str algo: algorithm to be used. One of None, RS256, RS384 or RS512.
9898
:param dict headers: additional headers for the claim.
9999
:rtype: str

0 commit comments

Comments
 (0)