Skip to content

chore: mypy: Disallow untyped definitions #1409

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
May 1, 2021
Merged

chore: mypy: Disallow untyped definitions #1409

merged 1 commit into from
May 1, 2021

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovos JohnVillalovos commented Apr 24, 2021

Be more strict and don't allow untyped definitions on the files we
check.

Also this adds type-hints for two of the decorators so that now
functions/methods decorated by them will have their types be revealed
correctly.

@codecov-commenter
Copy link

codecov-commenter commented Apr 24, 2021

Codecov Report

Merging #1409 (6aef2da) into master (a6b6cd4) will increase coverage by 0.01%.
The diff coverage is 74.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1409      +/-   ##
==========================================
+ Coverage   80.24%   80.26%   +0.01%     
==========================================
  Files          73       73              
  Lines        4064     4073       +9     
==========================================
+ Hits         3261     3269       +8     
- Misses        803      804       +1     
Flag Coverage Δ
unit 80.26% <74.50%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
gitlab/__main__.py 0.00% <0.00%> (ø)
gitlab/cli.py 56.36% <55.55%> (+2.30%) ⬆️
gitlab/exceptions.py 96.52% <83.33%> (-1.30%) ⬇️
gitlab/types.py 90.00% <91.66%> (-2.60%) ⬇️
gitlab/base.py 88.60% <100.00%> (ø)
gitlab/config.py 92.61% <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 a6b6cd4...6aef2da. Read the comment docs.

@JohnVillalovos JohnVillalovos changed the title mypy: Disallow untyped definitions chore: mypy: Disallow untyped definitions Apr 24, 2021
@max-wittig
Copy link
Member

Just a small question

@JohnVillalovos
Copy link
Member Author

Just a small question

@max-wittig I think I answered your question, but let me know if you need more information.

Thanks

Be more strict and don't allow untyped definitions on the files we
check.

Also this adds type-hints for two of the decorators so that now
functions/methods decorated by them will have their types be revealed
correctly.
@nejch nejch merged commit 562fbbd into python-gitlab:master May 1, 2021
@JohnVillalovos JohnVillalovos deleted the jlvillal/untyped_defs branch January 4, 2022 06:52
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.

4 participants