« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 878 ms

ProjectMergeRequest.pipelines() returns a 'list' instead of documented 'RESTObjectList' · Issue #1312 · python-gitlab/python-gitlab

Source: https://github.com/python-gitlab/python-gitlab/issues/1312

Repository navigation

ProjectMergeRequest.pipelines() returns a 'list' instead of documented 'RESTObjectList'  #1312


New issue

New issue

Closed
#1323
Closed
ProjectMergeRequest.pipelines() returns a 'list' instead of documented 'RESTObjectList' #1312 #1323

Description

@beanaroo's profile beanaroo opened on Feb 21, 2021

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

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions