Skip to content

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

Merged
max-wittig merged 1 commit into
python-gitlab:masterfrom
JohnVillalovos:jlvillal/mypy_mixins
Apr 20, 2021
Merged

fix: correct some type-hints in gitlab/mixins.py#1398
max-wittig merged 1 commit into
python-gitlab:masterfrom
JohnVillalovos:jlvillal/mypy_mixins

Conversation

@JohnVillalovos

Copy link
Copy Markdown
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

codecov-commenter commented Apr 18, 2021

Copy link
Copy Markdown

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
Copy Markdown
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