gapic-generator-python icon indicating copy to clipboard operation
gapic-generator-python copied to clipboard

Update type hints for credentials in the async client layer

Open ohmayr opened this issue 1 year ago • 0 comments

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/gapic-generator-python/issues/2173

ohmayr avatar Sep 20 '24 05:09 ohmayr