Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils.py: fix types in docstrings for base64url_encode/decode #269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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