Skip to content

Commit

Permalink
Use newer type stubs branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Mar 12, 2024
1 parent 1497df4 commit 0d08cad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions repo_helper_bot/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
from github3.exceptions import NotFoundError
from github3.pulls import ShortPullRequest
from github3.repos import Repository as GitHubRepository
from github3.session import GitHubSession
from github3_utils.apps import iter_installed_repos
from repo_helper.cli.utils import commit_changed_files # nodep
from repo_helper.core import RepoHelper # nodep
Expand Down Expand Up @@ -296,6 +297,7 @@ def get_installation_access_token(

headers = apps.create_jwt_headers(GITHUBAPP_KEY, GITHUBAPP_ID, expire_in=30)
url = github_repo._build_url("app", "installations", str(installation_id), "access_tokens")
assert isinstance(github_repo.session, GitHubSession)
with github_repo.session.no_auth():
response = github_repo.session.post(url, headers=headers)
json_response = github_repo._json(response, 201)
Expand Down
2 changes: 1 addition & 1 deletion stubs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ git+https://github.com/domdfcoding/dulwich-stubs
git+https://github.com/domdfcoding/pytest-regressions-stubs
sqlalchemy-stubs
git+https://github.com/ssfdust/flask-sqlalchemy-stubs
git+https://github.com/domdfcoding/github3.py@stubs
git+https://github.com/domdfcoding/github3.py@stubs-v4

0 comments on commit 0d08cad

Please sign in to comment.