- Notifications
You must be signed in to change notification settings - Fork673
fix: correct ProjectFile.decode() documentation#1405
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
fix: correct ProjectFile.decode() documentation#1405
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecov-commenter commentedApr 23, 2021
Codecov Report
@@ Coverage Diff @@## master #1405 +/- ##======================================= Coverage 80.22% 80.22% ======================================= Files 73 73 Lines 4071 4071 ======================================= Hits 3266 3266 Misses 805 805
Flags with carried forward coverage won't be shown.Click here to find out more.
Continue to review full report at Codecov.
|
ProjectFile.decode() returns 'bytes' and not 'str'.Update the method's doc-string and add a type-hint.ProjectFile.decode() returns the result of a call tobase64.b64decode()The docs for that function state it returns 'bytes':https://docs.python.org/3/library/base64.html#base64.b64decodeFixes:#1403
Thanks 👍 |
Uh oh!
There was an error while loading.Please reload this page.
ProjectFile.decode() returns 'bytes' and not 'str'.
Update the method's doc-string and add a type-hint.
ProjectFile.decode() returns the result of a call to
base64.b64decode()
The docs for that function state it returns 'bytes':
https://docs.python.org/3/library/base64.html#base64.b64decode
Fixes:#1403