Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 8a8c4d2

Browse files
author
Jon Wayne Parrott
authored
Fix lint for latest pylint (#155)
1 parent 7b45217 commit 8a8c4d2

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

google/auth/transport/requests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ def __init__(self, credentials,
158158

159159
def request(self, method, url, data=None, headers=None, **kwargs):
160160
"""Implementation of Requests' request."""
161+
# pylint: disable=arguments-differ
162+
# Requests has a ton of arguments to request, but only two
163+
# (method, url) are required. We pass through all of the other
164+
# arguments to super, so no need to exhaustively list them here.
161165

162166
# Use a kwarg for this instead of an attribute to maintain
163167
# thread-safety.

tests/transport/test_requests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ def __init__(self, responses, headers=None):
5555
self.headers = headers or {}
5656

5757
def send(self, request, **kwargs):
58+
# pylint: disable=arguments-differ
59+
# request is the only required argument here and the only argument
60+
# we care about.
5861
self.requests.append(request)
5962
return self.responses.pop(0)
6063

0 commit comments

Comments
 (0)