googleapis / googleapis/google-cloud-python

Update type hints for credentials in the async client layer

Ouverte
#16,268 1 commentaire 0 réactions 1 personne assignée Réclamée par @ohmayr Voir sur GitHub
priority: p2 type: cleanup
Langage dominant
Python
Étoiles
5.4k
Forks
1.8k
Merge moyen
3 j 4 h
PR mergées (30 j)
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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.