fastai / ghapi

A delightful and complete interface to GitHub's amazing API

Home Page:https://ghapi.fast.ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: `paged` does not pass `kwargs` to operation

jrieke opened this issue · comments

On this line, the kwargs that paged receives are not passed on to the operation (as is described in the docs here and the docstring in the line above).

This produces an error for me when using paged with a custom header, e.g.:

paged(api.activity.list_stargazers_for_repo, "fastai", "ghapi", headers={"Accept": "application/vnd.github.v3.star+json"})

Made a small PR to fix this, see #25

Thanks!