Skip to content

Commit

Permalink
utils.py: fix types in docstrings for base64url_encode/decode
Browse files Browse the repository at this point in the history
  • Loading branch information
romanek-adam committed Jul 12, 2021
1 parent be8e914 commit f5d96d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jose/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def base64url_decode(input):
"""Helper method to base64url_decode a string.
Args:
input (str): A base64url_encoded string to decode.
input (bytes): A base64url_encoded string (bytes) to decode.
"""
rem = len(input) % 4
Expand All @@ -82,7 +82,7 @@ def base64url_encode(input):
"""Helper method to base64url_encode a string.
Args:
input (str): A base64url_encoded string to encode.
input (bytes): A base64url_encoded string (bytes) to encode.
"""
return base64.urlsafe_b64encode(input).replace(b"=", b"")
Expand Down

0 comments on commit f5d96d8

Please sign in to comment.