Skip to content

Commit d2d5891

Browse files
committed
Adds comment explaining scope is required
1 parent 72b2404 commit d2d5891

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oauth2client/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,8 @@ def __init__(self, client_id,
18281828
**kwargs: dict, The keyword arguments are all optional and required
18291829
parameters for the OAuth calls.
18301830
"""
1831+
# scope is a required argument, but to preserve backwards-compatibility
1832+
# we don't want to rearrange the positional arguments
18311833
if scope is None:
18321834
raise TypeError("The value of scope must not be None")
18331835
self.client_id = client_id

0 commit comments

Comments
 (0)