googleapis / googleapis/google-cloud-python

Update type hints for credentials in the async client layer

Open
#16,268 1 comment 0 reactions 1 assignee Claimed by @ohmayr View on GitHub
priority: p2 type: cleanup
Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
3d 4h
Merged PRs (30d)
122

Description

Update the credentials type hint in the async client constructor to include asynchronous credentials i.e. async credentials should also support `google.auth.aio.credentials.Credentials` which are required by the async rest transport.

For now, the type hint isn't updated in the client layer and mypy warnings are silenced by adding `# type: ignore` in the async rest transport constructor. This can be looked up by searching for this issue.

Related issue: https://github.com/googleapis/google-cloud-python/issues/16269

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.