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: disallow incomplete type defs#1342

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_incomplete
Feb 28, 2021
Merged

chore: disallow incomplete type defs#1342

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

Conversation

JohnVillalovos
Copy link
Member

Don't allow a partially annotated function definition. Either none of
the function is annotated or all of it must be.

Update code to ensure no-more partially annotated functions.

Update gitlab/cli.py with better type-hints. Changed Tuple[Any, ...]
to Tuple[str, ...]

@JohnVillalovosJohnVillalovos marked this pull request as draftFebruary 27, 2021 01:42
@codecov-io
Copy link

Codecov Report

Merging#1342 (a913d6f) intomaster (b0d75d9) willdecrease coverage by0.02%.
The diff coverage is92.59%.

Impacted file tree graph

@@            Coverage Diff             @@##           master    #1342      +/-   ##==========================================- Coverage   80.07%   80.04%   -0.03%==========================================  Files          72       72                Lines        3764     3769       +5     ==========================================+ Hits         3014     3017       +3- Misses        750      752       +2
FlagCoverage Δ
unit80.04% <92.59%> (-0.03%)⬇️

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

Impacted FilesCoverage Δ
gitlab/utils.py71.42% <50.00%> (-2.11%)⬇️
gitlab/base.py83.57% <87.50%> (-0.26%)⬇️
gitlab/cli.py53.57% <100.00%> (ø)
gitlab/client.py80.67% <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 updateb0d75d9...a913d6f. Read thecomment docs.

Don't allow a partially annotated function definition. Either none ofthe function is annotated or all of it must be.Update code to ensure no-more partially annotated functions.Update gitlab/cli.py with better type-hints. Changed Tuple[Any, ...]to Tuple[str, ...]
@JohnVillalovosJohnVillalovos marked this pull request as ready for reviewFebruary 28, 2021 17:14
@nejchnejch merged commit5f23ed9 intopython-gitlab:masterFeb 28, 2021
@JohnVillalovosJohnVillalovos deleted the jlvillal/mypy_incomplete 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