Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add type-hints to remaining gitlab/v4/objects/*.py files#1695

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 12 commits intomainfromjlvillal/mypy_epics
Nov 23, 2021

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovosJohnVillalovos commentedNov 17, 2021
edited
Loading

Fixed a bug in the auto-manager creation code if we added a type-hint for themanager attribute.

Add type-hints for the remainder of the code base.

Finally! 😊

@JohnVillalovosJohnVillalovosforce-pushed thejlvillal/mypy_epics branch 4 times, most recently from57cd034 tobb1a454CompareNovember 17, 2021 04:31
@JohnVillalovosJohnVillalovos changed the titleWIP: chore: add type-hints to gitlab/v4/objects/epics.pychore: add type-hints to gitlab/v4/objects/epics.pyNov 17, 2021
@codecov-commenter
Copy link

codecov-commenter commentedNov 17, 2021
edited
Loading

Codecov Report

Merging#1695 (8c3879c) intomain (2cd15ac) willdecrease coverage by0.07%.
The diff coverage is87.50%.

@@            Coverage Diff             @@##             main    #1695      +/-   ##==========================================- Coverage   91.53%   91.46%   -0.08%==========================================  Files          75       75                Lines        4574     4616      +42     ==========================================+ Hits         4187     4222      +35- Misses        387      394       +7
FlagCoverage Δ
cli_func_v480.63% <69.79%> (-0.20%)⬇️
py_func_v480.82% <79.16%> (-0.11%)⬇️
unit82.92% <80.20%> (-0.09%)⬇️

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

Impacted FilesCoverage Δ
gitlab/v4/objects/geo_nodes.py68.57% <46.15%> (-7.30%)⬇️
gitlab/v4/objects/epics.py74.41% <83.33%> (+0.05%)⬆️
gitlab/v4/objects/pipelines.py93.75% <83.33%> (-0.70%)⬇️
gitlab/v4/objects/jobs.py77.27% <89.47%> (+1.00%)⬆️
gitlab/v4/objects/issues.py89.02% <100.00%> (+1.02%)⬆️
gitlab/v4/objects/milestones.py100.00% <100.00%> (ø)
gitlab/v4/objects/repositories.py82.53% <100.00%> (+1.18%)⬆️
gitlab/v4/objects/services.py100.00% <100.00%> (ø)
gitlab/v4/objects/sidekiq.py100.00% <100.00%> (ø)

@JohnVillalovosJohnVillalovos changed the titlechore: add type-hints to gitlab/v4/objects/epics.pychore: add type-hints to remaining gitlab/v4/objects/*.py filesNov 21, 2021
@JohnVillalovosJohnVillalovosforce-pushed thejlvillal/mypy_epics branch 2 times, most recently from1ecb0a6 toccd93e3CompareNovember 21, 2021 22:54
@JohnVillalovosJohnVillalovos marked this pull request as draftNovember 21, 2021 22:55
@JohnVillalovosJohnVillalovosforce-pushed thejlvillal/mypy_epics branch 10 times, most recently fromcf0049b tod18987fCompareNovember 22, 2021 03:06
@JohnVillalovosJohnVillalovos changed the titlechore: add type-hints to remaining gitlab/v4/objects/*.py filesWIP: chore: add type-hints to remaining gitlab/v4/objects/*.py filesNov 22, 2021
When attempting to add type-hints to the the 'manager' attribute intoa RESTObject derived class it would break things.This was because our auto-manager creation code would automaticallyadd the specified annotated manager to the 'manager' attribute. Thisbreaks things.Now check in our auto-manager creation if our attribute is called'manager'. If so we ignore it.
@JohnVillalovosJohnVillalovos marked this pull request as ready for reviewNovember 22, 2021 06:42
@JohnVillalovosJohnVillalovos changed the titleWIP: chore: add type-hints to remaining gitlab/v4/objects/*.py fileschore: add type-hints to remaining gitlab/v4/objects/*.py filesNov 22, 2021
@nejchnejch merged commit7ba5995 intomainNov 23, 2021
@nejchnejch deleted the jlvillal/mypy_epics branchNovember 23, 2021 21:59
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nejchnejchnejch left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Lack of typing info RFE: Support type hints so mypy and other type checkers can work
3 participants
@JohnVillalovos@codecov-commenter@nejch

[8]ページ先頭

©2009-2025 Movatter.jp