Skip to content

chore: create return type-hints for get_id() & encoded_id #1841

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
Jan 15, 2022

Conversation

JohnVillalovos
Copy link
Member

Create return type-hints for RESTObject.get_id() and
RESTObject.encoded_id. Previously was saying they return Any. Be
more precise in saying they can return either: None, str, or int.

Create return type-hints for `RESTObject.get_id()` and
`RESTObject.encoded_id`. Previously was saying they return Any. Be
more precise in saying they can return either: None, str, or int.
@codecov-commenter
Copy link

Codecov Report

Merging #1841 (0c3a1d1) into main (a1dbe86) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1841   +/-   ##
=======================================
  Coverage   92.26%   92.26%           
=======================================
  Files          77       77           
  Lines        4849     4849           
=======================================
  Hits         4474     4474           
  Misses        375      375           
Flag Coverage Δ
cli_func_v4 81.29% <100.00%> (ø)
py_func_v4 80.26% <100.00%> (ø)
unit 83.29% <100.00%> (ø)

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

Impacted Files Coverage Δ
gitlab/mixins.py 91.50% <ø> (ø)
gitlab/v4/objects/files.py 100.00% <ø> (ø)
gitlab/base.py 92.51% <100.00%> (ø)

@nejch nejch merged commit 1ac982a into main Jan 15, 2022
@nejch nejch deleted the jlvillal/get_id branch January 15, 2022 00:07
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