Closed
Description
Description of the problem, including code/CLI snippet
I'm not sure if this is a documentation or API bug.
type(merge_request.pipelines(order_by='created_at'))
<class 'list'>
Documentation suggests it is RESTObjectList
Getting an element in the returned list by index (pipelines()[0]
) works but produces the following warning.
Class 'RESTObjectList' does not define '__getitem__', so the '[]' operator cannot be used on its instances
Specifications
- python-gitlab version:
2.6.0
- API version you are using (v3/v4):
v4
- Gitlab server version (or gitlab.com):
gitlab.com
Metadata
Metadata
Assignees
Labels
No labels