File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def __init__(
91
91
# Refresh tokens are valid until the user revokes access
92
92
self .refresh_token = refresh_token
93
93
94
- def request_codes (self ):
94
+ def request_codes (self ) -> None :
95
95
"""Identifies your application and access scopes with Google's
96
96
authorization server. Attempts to request device and user codes
97
97
"""
@@ -118,7 +118,7 @@ def request_codes(self):
118
118
self .verification_url = json_resp ["verification_url" ]
119
119
self .user_code = json_resp ["user_code" ]
120
120
121
- def wait_for_authorization (self ):
121
+ def wait_for_authorization (self ) -> bool :
122
122
"""Blocking method which polls Google's authorization server
123
123
until a response from Google's authorization server indicating
124
124
that the user has responded to the access request, or until the
@@ -164,7 +164,7 @@ def wait_for_authorization(self):
164
164
self .access_token_scope = json_resp ["scope" ]
165
165
return True
166
166
167
- def refresh_access_token (self ):
167
+ def refresh_access_token (self ) -> bool :
168
168
"""Refreshes an expired access token.
169
169
:return: True if able to refresh an access token, False otherwise.
170
170
You can’t perform that action at this time.
0 commit comments