| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## main #2032 +/- ##
==========================================
- Coverage 92.72% 92.71% -0.02%
==========================================
Files 78 78
Lines 4947 4953 +6
==========================================
+ Hits 4587 4592 +5
- Misses 360 361 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good @JohnVillalovos just a few minor comments.
Context for future readers:
https://github.com/python-gitlab/python-gitlab/pull/1956/files#r884302316
Sorry, something went wrong.
… in `list()` `as_list=False` is confusing as it doesn't explain what is being returned. Replace it with `iterator=True` which more clearly explains to the user that an iterator/generator will be returned. This maintains backward compatibility with `as_list` but does issue a DeprecationWarning if `as_list` is set.
There was a problem hiding this comment.
Thanks @JohnVillalovos, makes sense to me, also makes it consistent with the iterator arg on the upcoming streaming responses PR then.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
as_list=False is confusing as it doesn't explain what is being
returned. Replace it with iterator=True which more clearly explains
to the user that an iterator/generator will be returned.
This maintains backward compatibility with as_list but does issue a
DeprecationWarning if as_list is set.