Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect documentation for listing gists #1069

Open
Aran-Fey opened this issue Jan 29, 2022 · 0 comments
Open

Incorrect documentation for listing gists #1069

Aran-Fey opened this issue Jan 29, 2022 · 0 comments

Comments

@Aran-Fey
Copy link

The documentation for gists() says:

Retrieve the authenticated user’s gists.

But in reality, it returns other people's gists:

import github3

gh = github3.login(username='Aran-Fey', password='foobar')

for gist in gh.gists(number=5):
    print(gist, gist.owner)

# 92bd5c227fecf9ce02d58348cb0ce0e8 GrahamcOfBorg
# c1cae7cbc7d3a8403b5b11a8e772d4b0 ballerina-github-bot
# a4e87b5ed144ae632bcac58241da5dcc ballerina-github-bot
# 4327d03c7539129ce0849ac0f4335031 ballerina-github-bot
# 1e35a6aba7d4517e55238866a7045004 ballerina-github-bot

Also, in this section you show off a function named iter_gists(), which does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant