Skip to content

Commit 2043684

Browse files
committed
remove extra requests requirement. update docstring for requests session
1 parent 4855fcb commit 2043684

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

adafruit_oauth2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
"""
2525
try:
26-
from typing import Optional
26+
from typing import Optional, List
2727
import adafruit_requests
2828
except ImportError:
2929
pass
@@ -46,7 +46,7 @@ class OAuth2: # pylint: disable=too-many-arguments, too-many-instance-attribute
4646
"""Implements OAuth2.0 authorization to access Google APIs via
4747
the OAuth 2.0 limited-input device application flow.
4848
https://developers.google.com/identity/protocols/oauth2/limited-input-device
49-
:param requests: An adafruit_requests object.
49+
:param adafruit_requests.Session requests: An adafruit_requests object.
5050
:param str client_id: The client ID for your application.
5151
:param str client_secret: The client secret obtained from the API Console.
5252
:param list scopes: Scopes that identify the resources used by the application.
@@ -60,7 +60,7 @@ def __init__(
6060
requests: adafruit_requests.Session,
6161
client_id: str,
6262
client_secret: str,
63-
scopes: list,
63+
scopes: List[str],
6464
access_token: Optional[str] = None,
6565
refresh_token: Optional[str] = None,
6666
) -> None:

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
# SPDX-License-Identifier: MIT
55

66
Adafruit-Blinka
7-
adafruit-circuitpython-requests,
8-
adafruit-requests
7+
adafruit-circuitpython-requests

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
install_requires=[
3838
"Adafruit-Blinka",
3939
"adafruit-circuitpython-requests",
40-
"adafruit-requests",
4140
],
4241
# Choose your license
4342
license="MIT",

0 commit comments

Comments
 (0)