Adds comment explaining scope is required

This commit is contained in:
Brendan McCollam
2015-06-25 20:59:56 -05:00
parent 72b240453a
commit d2d5891dee

View File

@@ -1828,6 +1828,8 @@ class OAuth2WebServerFlow(Flow):
**kwargs: dict, The keyword arguments are all optional and required
parameters for the OAuth calls.
"""
# scope is a required argument, but to preserve backwards-compatibility
# we don't want to rearrange the positional arguments
if scope is None:
raise TypeError("The value of scope must not be None")
self.client_id = client_id