Skip to content

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

Merged
nejch merged 1 commit into
python-gitlab:masterfrom
JohnVillalovos:jlvillal/mypy_base_fixes
Feb 28, 2021
Merged

chore: add additional type-hints for gitlab/base.py#1345
nejch merged 1 commit into
python-gitlab:masterfrom
JohnVillalovos:jlvillal/mypy_base_fixes

Conversation

@JohnVillalovos

@JohnVillalovos JohnVillalovos commented Feb 27, 2021

Copy link
Copy Markdown
Member

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

codecov-io commented Feb 27, 2021

Copy link
Copy Markdown

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