Skip to content

Commit f9e9187

Browse files
partheachalmerlowe
andauthored
chore: fix minor typos (#1651)
Fix minor typos found via internal cl/713764938 Co-authored-by: Chalmer Lowe <[email protected]>
1 parent c767531 commit f9e9187

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

google/auth/aio/transport/aiohttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class Request(transport.Request):
104104
# Custom aiohttp Session Example:
105105
session = session=aiohttp.ClientSession(auto_decompress=False)
106106
request = google.auth.aio.transport.aiohttp.Request(session=session)
107-
auth_sesion = google.auth.aio.transport.sessions.AsyncAuthorizedSession(auth_request=request)
107+
auth_session = google.auth.aio.transport.sessions.AsyncAuthorizedSession(auth_request=request)
108108
109109
Args:
110110
session (aiohttp.ClientSession): An instance :class:`aiohttp.ClientSession` used

google/auth/aio/transport/sessions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async def request(
159159
at ``max_allowed_time``. It might take longer, for example, if
160160
an underlying request takes a lot of time, but the request
161161
itself does not timeout, e.g. if a large file is being
162-
transmitted. The timout error will be raised after such
162+
transmitted. The timeout error will be raised after such
163163
request completes.
164164
165165
Returns:

google/auth/transport/_aiohttp_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ async def request(
301301
at ``max_allowed_time``. It might take longer, for example, if
302302
an underlying request takes a lot of time, but the request
303303
itself does not timeout, e.g. if a large file is being
304-
transmitted. The timout error will be raised after such
304+
transmitted. The timeout error will be raised after such
305305
request completes.
306306
"""
307307
# Headers come in as bytes which isn't expected behavior, the resumable

google/auth/transport/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def request(
503503
at ``max_allowed_time``. It might take longer, for example, if
504504
an underlying request takes a lot of time, but the request
505505
itself does not timeout, e.g. if a large file is being
506-
transmitted. The timout error will be raised after such
506+
transmitted. The timeout error will be raised after such
507507
request completes.
508508
Raises:
509509
google.auth.exceptions.MutualTLSChannelError: If mutual TLS

google/oauth2/webauthn_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get(self, get_request: GetRequest) -> GetResponse:
2020

2121

2222
class PluginHandler(WebAuthnHandler):
23-
"""Offloads WebAuthn get reqeust to a pluggable command-line tool.
23+
"""Offloads WebAuthn get request to a pluggable command-line tool.
2424
2525
Offloads WebAuthn get to a plugin which takes the form of a
2626
command-line tool. The command-line tool is configurable via the

tests/oauth2/test_webauthn_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_GetRequest(has_allow_credentials):
7878
{"type": "public-key", "id": "fake_id_1"},
7979
{"type": "public-key", "id": "fake_id_2"},
8080
]
81-
exepcted_dict = {
81+
expected_dict = {
8282
"type": "get",
8383
"origin": "fake_origin",
8484
"requestData": {
@@ -90,8 +90,8 @@ def test_GetRequest(has_allow_credentials):
9090
},
9191
}
9292
if has_allow_credentials:
93-
exepcted_dict["requestData"]["allowCredentials"] = expected_allow_credentials
94-
assert json.loads(test_get_request.to_json()) == exepcted_dict
93+
expected_dict["requestData"]["allowCredentials"] = expected_allow_credentials
94+
assert json.loads(test_get_request.to_json()) == expected_dict
9595

9696

9797
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)