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

chore: add additional type-hints for gitlab/base.py#1345

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
nejch merged 1 commit intopython-gitlab:masterfromJohnVillalovos:jlvillal/mypy_base_fixes
Feb 28, 2021
Merged

chore: add additional type-hints for gitlab/base.py#1345

nejch merged 1 commit intopython-gitlab:masterfromJohnVillalovos:jlvillal/mypy_base_fixes
Feb 28, 2021

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovosJohnVillalovos commentedFeb 27, 2021
edited
Loading

Add type-hints for the variables which are set via self.dict

mypy doesn't see them when they are assigned via self.dict. So
declare them in the class definition.

@codecov-io
Copy link

codecov-io commentedFeb 27, 2021
edited
Loading

Codecov Report

Merging#1345 (ad72ef3) intomaster (b0d75d9) willincrease coverage by0.03%.
The diff coverage is100.00%.

Impacted file tree graph

@@            Coverage Diff             @@##           master    #1345      +/-   ##==========================================+ Coverage   80.07%   80.10%   +0.03%==========================================  Files          72       72                Lines        3764     3770       +6     ==========================================+ Hits         3014     3020       +6  Misses        750      750
FlagCoverage Δ
unit80.10% <100.00%> (+0.03%)⬆️

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

Impacted FilesCoverage Δ
gitlab/base.py84.50% <100.00%> (+0.68%)⬆️

Continue to review full report at Codecov.

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

Add type-hints for the variables which are set via self.__dict__mypy doesn't see them when they are assigned via self.__dict__. Sodeclare them in the class definition.
@nejchnejch merged commit7441455 intopython-gitlab:masterFeb 28, 2021
@JohnVillalovosJohnVillalovos deleted the jlvillal/mypy_base_fixes branchFebruary 28, 2021 18:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nejchnejchnejch approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@JohnVillalovos@codecov-io@nejch

[8]ページ先頭

©2009-2025 Movatter.jp