Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2021
Merged

chore: disallow incomplete type defs #1342

merged 1 commit into from
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, ...]

@JohnVillalovos JohnVillalovos marked this pull request as draft February 27, 2021 01:42
@codecov-io
Copy link

Codecov Report

Merging #1342 (a913d6f) into master (b0d75d9) will decrease coverage by 0.02%.
The diff coverage is 92.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     
Flag Coverage Δ
unit 80.04% <92.59%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
gitlab/utils.py 71.42% <50.00%> (-2.11%) ⬇️
gitlab/base.py 83.57% <87.50%> (-0.26%) ⬇️
gitlab/cli.py 53.57% <100.00%> (ø)
gitlab/client.py 80.67% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b0d75d9...a913d6f. Read the comment docs.

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, ...]
@JohnVillalovos JohnVillalovos marked this pull request as ready for review February 28, 2021 17:14
@nejch nejch merged commit 5f23ed9 into python-gitlab:master Feb 28, 2021
@JohnVillalovos JohnVillalovos deleted the jlvillal/mypy_incomplete branch February 28, 2021 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants