Skip to content

chore: add additional type-hints for gitlab/base.py #1345

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: add additional type-hints for gitlab/base.py #1345

merged 1 commit into from
Feb 28, 2021

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovos JohnVillalovos commented Feb 27, 2021

Add type-hints for the variables which are set via self.dict

mypy doesn't see them when they are assigned via self.dict. So
declare them in the class definition.

@codecov-io
Copy link

codecov-io commented Feb 27, 2021

Codecov Report

Merging #1345 (ad72ef3) into master (b0d75d9) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1345      +/-   ##
==========================================
+ Coverage   80.07%   80.10%   +0.03%     
==========================================
  Files          72       72              
  Lines        3764     3770       +6     
==========================================
+ Hits         3014     3020       +6     
  Misses        750      750              
Flag Coverage Δ
unit 80.10% <100.00%> (+0.03%) ⬆️

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

Impacted Files Coverage Δ
gitlab/base.py 84.50% <100.00%> (+0.68%) ⬆️

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

Add type-hints for the variables which are set via self.__dict__

mypy doesn't see them when they are assigned via self.__dict__. So
declare them in the class definition.
@nejch nejch merged commit 7441455 into python-gitlab:master Feb 28, 2021
@JohnVillalovos JohnVillalovos deleted the jlvillal/mypy_base_fixes 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