Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
max-wittig merged 1 commit intopython-gitlab:masterfromJohnVillalovos:jlvillal/returns_bytes
Apr 23, 2021
Merged

fix: correct ProjectFile.decode() documentation#1405

max-wittig merged 1 commit intopython-gitlab:masterfromJohnVillalovos:jlvillal/returns_bytes
Apr 23, 2021

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovosJohnVillalovos commentedApr 23, 2021
edited
Loading

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

Nov1kov reacted with thumbs up emoji
@JohnVillalovosJohnVillalovos changed the titleCorrect ProjectFile.decode() documentationfix: correct ProjectFile.decode() documentationApr 23, 2021
@codecov-commenter
Copy link

Codecov Report

Merging#1405 (5dc4461) intomaster (711896f) willnot change coverage.
The diff coverage is100.00%.

❗ Current head5dc4461 differs from pull request most recent headaae000d. Consider uploading reports for the commitaae000d to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@##           master    #1405   +/-   ##=======================================  Coverage   80.22%   80.22%           =======================================  Files          73       73             Lines        4071     4071           =======================================  Hits         3266     3266             Misses        805      805
FlagCoverage Δ
unit80.22% <100.00%> (ø)

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
gitlab/v4/objects/files.py50.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update711896f...aae000d. Read thecomment docs.

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
@max-wittig
Copy link
Member

Thanks 👍

JohnVillalovos reacted with thumbs up emoji

@max-wittigmax-wittig merged commitc055de0 intopython-gitlab:masterApr 23, 2021
@JohnVillalovosJohnVillalovos deleted the jlvillal/returns_bytes branchApril 23, 2021 13:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Wrong return type in ProjectFile.decode()
3 participants
@JohnVillalovos@codecov-commenter@max-wittig

[8]ページ先頭

©2009-2025 Movatter.jp