Skip to content

Commit e42f0a3

Browse files
committed
added docstring
1 parent 76274ca commit e42f0a3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/google-auth/google/auth/transport

packages/google-auth/google/auth/transport/grpc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ class AuthMetadataPlugin(grpc.AuthMetadataPlugin):
4747
default_host (Optional[str]): A host like "pubsub.googleapis.com".
4848
This is used when a self-signed JWT is created from service
4949
account credentials.
50+
suppress_metrics_header (bool): When enabled, ``x-goog-api-client``
51+
will be stripped from authorization headers.
5052
"""
5153

52-
def __init__(self, credentials, request, default_host=None, suppress_metrics_header=False):
54+
def __init__(self, credentials, request, default_host=None, *, suppress_metrics_header=False):
5355
# pylint: disable=no-value-for-parameter
5456
# pylint doesn't realize that the super method takes no arguments
5557
# because this class is the same name as the superclass.

0 commit comments

Comments
 (0)