File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,14 @@ def client_cert_source_callback():
9191 return b"cert bytes" , b"key bytes"
9292
9393
94- # TODO: use async auth anon credentials by default once the minimum version of google-auth is upgraded.
94+ # TODO: use async auth anon credentials by default once the minimum version of google-auth
95+ # is upgraded to >= 2.35.0 -> Add support for asynchronous AuthorizedSession api (#1577) (2910b6b)
9596# See related issue: https://github.com/googleapis/gapic-generator-python/issues/2107.
9697def async_anonymous_credentials ():
9798 if HAS_GOOGLE_AUTH_AIO :
9899 return ga_credentials_async .AnonymousCredentials ()
99- return ga_credentials .AnonymousCredentials ()
100+ else : # pragma: NO COVER
101+ return ga_credentials .AnonymousCredentials ()
100102
101103
102104# If default endpoint is localhost, then default mtls endpoint will be the same.
Original file line number Diff line number Diff line change @@ -88,12 +88,14 @@ def client_cert_source_callback():
8888 return b"cert bytes" , b"key bytes"
8989
9090
91- # TODO: use async auth anon credentials by default once the minimum version of google-auth is upgraded.
91+ # TODO: use async auth anon credentials by default once the minimum version of google-auth
92+ # is upgraded to >= 2.35.0 -> Add support for asynchronous AuthorizedSession api (#1577) (2910b6b)
9293# See related issue: https://github.com/googleapis/gapic-generator-python/issues/2107.
9394def async_anonymous_credentials ():
9495 if HAS_GOOGLE_AUTH_AIO :
9596 return ga_credentials_async .AnonymousCredentials ()
96- return ga_credentials .AnonymousCredentials ()
97+ else : # pragma: NO COVER
98+ return ga_credentials .AnonymousCredentials ()
9799
98100
99101# If default endpoint is localhost, then default mtls endpoint will be the same.
You can’t perform that action at this time.
0 commit comments