Skip to content

chore: add type-hints for gitlab/mixins.py #1344

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
Mar 6, 2021
Merged

chore: add type-hints for gitlab/mixins.py #1344

merged 1 commit into from
Mar 6, 2021

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovos JohnVillalovos commented Feb 27, 2021

  • Added type-hints for gitlab/mixins.py
  • Changed use of filter with a lambda expression to
    list-comprehension. mypy was not able to understand the previous
    code. Also list-comprehension is better :)

@codecov-io
Copy link

codecov-io commented Feb 27, 2021

Codecov Report

Merging #1344 (baea721) into master (ebdfec7) will decrease coverage by 0.16%.
The diff coverage is 79.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1344      +/-   ##
==========================================
- Coverage   80.08%   79.92%   -0.17%     
==========================================
  Files          73       73              
  Lines        3812     4010     +198     
==========================================
+ Hits         3053     3205     +152     
- Misses        759      805      +46     
Flag Coverage Δ
unit 79.92% <79.21%> (-0.17%) ⬇️

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

Impacted Files Coverage Δ
gitlab/mixins.py 77.92% <79.21%> (-0.94%) ⬇️

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 ebdfec7...baea721. Read the comment docs.

@JohnVillalovos JohnVillalovos marked this pull request as draft February 27, 2021 20:18
@JohnVillalovos JohnVillalovos marked this pull request as ready for review February 27, 2021 20:22
@JohnVillalovos JohnVillalovos changed the title Add type-hints for gitlab/mixins.py chore: add type-hints for gitlab/mixins.py Feb 28, 2021
@JohnVillalovos JohnVillalovos marked this pull request as draft February 28, 2021 19:03
@JohnVillalovos JohnVillalovos marked this pull request as ready for review March 2, 2021 01:21
  * Added type-hints for gitlab/mixins.py
  * Changed use of filter with a lambda expression to
    list-comprehension. mypy was not able to understand the previous
    code. Also list-comprehension is better :)
@nejch nejch merged commit 63ecd2e into python-gitlab:master Mar 6, 2021
@JohnVillalovos JohnVillalovos deleted the jlvillal/mixins branch March 6, 2021 22:18
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