googleapis / googleapis/google-cloud-python

Update type hints for credentials in the async client layer

Aperta
#16,268 1 commento 0 reazioni 1 assegnatario Rivendicata da @ohmayr Vedi su GitHub
priority: p2 type: cleanup
Lingua principale
Python
Stelle
5.4k
Fork
1.8k
Merge medio
3g 4h
PR unite (30g)
122

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.