Skip to content

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

Merged
nejch merged 1 commit into
mainfrom
jlvillal/get_id
Jan 15, 2022
Merged

chore: create return type-hints for get_id() & encoded_id#1841
nejch merged 1 commit into
mainfrom
jlvillal/get_id

Conversation

@JohnVillalovos

Copy link
Copy Markdown
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
Copy Markdown

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