Skip to content

fix: correct some type-hints in gitlab/mixins.py #1398

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
Apr 20, 2021
Merged

fix: correct some type-hints in gitlab/mixins.py #1398

merged 1 commit into from
Apr 20, 2021

Conversation

JohnVillalovos
Copy link
Member

Commit baea721 introduced type-hints
for gitlab/mixins.py.

After starting to add type-hints to gitlab/v4/objects/users.py
discovered a few errors.

Main error was using '=' instead of ':'. For example:
_parent = Optional[...] should be _parent: Optional[...]

Resolved those issues.

Commit baea721 introduced type-hints
for gitlab/mixins.py.

After starting to add type-hints to gitlab/v4/objects/users.py
discovered a few errors.

Main error was using '=' instead of ':'. For example:
  _parent = Optional[...] should be _parent: Optional[...]

Resolved those issues.
@codecov-commenter
Copy link

codecov-commenter commented Apr 18, 2021

Codecov Report

Merging #1398 (8bd3124) into master (916a7fe) will decrease coverage by 0.02%.
The diff coverage is 92.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1398      +/-   ##
==========================================
- Coverage   80.16%   80.13%   -0.03%     
==========================================
  Files          73       73              
  Lines        4073     4077       +4     
==========================================
+ Hits         3265     3267       +2     
- Misses        808      810       +2     
Flag Coverage Δ
unit 80.13% <92.30%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
gitlab/mixins.py 77.22% <92.30%> (-0.26%) ⬇️

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 916a7fe...8bd3124. Read the comment docs.

@max-wittig
Copy link
Member

Thanks for the fixes. That makes much more sense now 😄

@max-wittig max-wittig merged commit 5b18d20 into python-gitlab:master Apr 20, 2021
@JohnVillalovos JohnVillalovos deleted the jlvillal/mypy_mixins branch April 20, 2021 16:04
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