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: update type-hints return signature for GetWithoutIdMixin methods#2036

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 1 commit intomainfromjlvillal/get_not_none
May 30, 2022

Conversation

@JohnVillalovos
Copy link
Member

Commitf0152dc removed situation
whereget() in aGetWithoutIdMixin based class could returnNone

Update the type-hints to no longer returnOptional AKANone

Commitf0152dc removed situationwhere `get()` in a `GetWithoutIdMixin` based class could return `None`Update the type-hints to no longer return `Optional` AKA `None`
@codecov-commenter
Copy link

Codecov Report

Merging#2036 (aa972d4) intomain (b2e6f3b) willnot change coverage.
The diff coverage is79.31%.

@@           Coverage Diff           @@##             main    #2036   +/-   ##=======================================  Coverage   93.72%   93.72%           =======================================  Files          78       78             Lines        4941     4941           =======================================  Hits         4631     4631             Misses        310      310
FlagCoverage Δ
cli_func_v481.64% <27.58%> (ø)
py_func_v480.51% <48.27%> (ø)
unit84.98% <62.06%> (ø)

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

Impacted FilesCoverage Δ
gitlab/mixins.py92.51% <ø> (ø)
gitlab/v4/objects/push_rules.py92.85% <0.00%> (ø)
gitlab/v4/objects/merge_request_approvals.py90.58% <33.33%> (ø)
gitlab/v4/objects/notification_settings.py96.42% <66.66%> (ø)
gitlab/v4/objects/export_import.py94.59% <75.00%> (ø)
gitlab/v4/objects/appearance.py100.00% <100.00%> (ø)
gitlab/v4/objects/pipelines.py94.39% <100.00%> (ø)
gitlab/v4/objects/projects.py89.89% <100.00%> (ø)
gitlab/v4/objects/settings.py95.45% <100.00%> (ø)
gitlab/v4/objects/statistics.py100.00% <100.00%> (ø)
... and1 more

Copy link
Member

@nejchnejch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks@JohnVillalovos lgtm, just a quick question. There's another quirk with GetWithoutIdMixin I'll open a follow-up for.

@nejchnejch merged commit1f17349 intomainMay 30, 2022
@nejchnejch deleted the jlvillal/get_not_none branchMay 30, 2022 20:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nejchnejchnejch approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@JohnVillalovos@codecov-commenter@nejch

[8]ページ先頭

©2009-2025 Movatter.jp