PagerDuty / pdpyras

Low-level PagerDuty REST/Events API client for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iter_all still includes the attribute keyword arg when short circuiting to iter_cursor

Deconstrained opened this issue · comments

This could lead to an error when using iter_all or any of its wrappers (i.e. list_all) on an endpoint that supports cursor-based pagination.

It's a very young use case but it is sure to come up and cause issues for users eventually.

See:

https://github.com/PagerDuty/pdpyras/blob/main/pdpyras.py#L1740