googleapis / googleapis/google-cloud-python
Update type hints for credentials in the async client layer
未关闭
priority: p2
type: cleanup
- 主要语言
- Python
- 星标
- 5.4k
- 派生
- 1.8k
- 平均合并
- 3 天 4 小时
- 30 天内合并 PR
- 122
描述
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
贡献指南
评估
这个 Issue 还没有评估数据。