Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix minor typos #1651

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion google/auth/aio/transport/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Request(transport.Request):
# Custom aiohttp Session Example:
session = session=aiohttp.ClientSession(auto_decompress=False)
request = google.auth.aio.transport.aiohttp.Request(session=session)
auth_sesion = google.auth.aio.transport.sessions.AsyncAuthorizedSession(auth_request=request)
auth_session = google.auth.aio.transport.sessions.AsyncAuthorizedSession(auth_request=request)

Args:
session (aiohttp.ClientSession): An instance :class:`aiohttp.ClientSession` used
Expand Down
2 changes: 1 addition & 1 deletion google/auth/aio/transport/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def request(
at ``max_allowed_time``. It might take longer, for example, if
an underlying request takes a lot of time, but the request
itself does not timeout, e.g. if a large file is being
transmitted. The timout error will be raised after such
transmitted. The timeout error will be raised after such
request completes.

Returns:
Expand Down
2 changes: 1 addition & 1 deletion google/auth/transport/_aiohttp_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ async def request(
at ``max_allowed_time``. It might take longer, for example, if
an underlying request takes a lot of time, but the request
itself does not timeout, e.g. if a large file is being
transmitted. The timout error will be raised after such
transmitted. The timeout error will be raised after such
request completes.
"""
# Headers come in as bytes which isn't expected behavior, the resumable
Expand Down
2 changes: 1 addition & 1 deletion google/auth/transport/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def request(
at ``max_allowed_time``. It might take longer, for example, if
an underlying request takes a lot of time, but the request
itself does not timeout, e.g. if a large file is being
transmitted. The timout error will be raised after such
transmitted. The timeout error will be raised after such
request completes.
"""
# pylint: disable=arguments-differ
Expand Down
2 changes: 1 addition & 1 deletion google/oauth2/webauthn_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get(self, get_request: GetRequest) -> GetResponse:


class PluginHandler(WebAuthnHandler):
"""Offloads WebAuthn get reqeust to a pluggable command-line tool.
"""Offloads WebAuthn get request to a pluggable command-line tool.

Offloads WebAuthn get to a plugin which takes the form of a
command-line tool. The command-line tool is configurable via the
Expand Down
6 changes: 3 additions & 3 deletions tests/oauth2/test_webauthn_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_GetRequest(has_allow_credentials):
{"type": "public-key", "id": "fake_id_1"},
{"type": "public-key", "id": "fake_id_2"},
]
exepcted_dict = {
expected_dict = {
"type": "get",
"origin": "fake_origin",
"requestData": {
Expand All @@ -90,8 +90,8 @@ def test_GetRequest(has_allow_credentials):
},
}
if has_allow_credentials:
exepcted_dict["requestData"]["allowCredentials"] = expected_allow_credentials
assert json.loads(test_get_request.to_json()) == exepcted_dict
expected_dict["requestData"]["allowCredentials"] = expected_allow_credentials
assert json.loads(test_get_request.to_json()) == expected_dict


@pytest.mark.parametrize(
Expand Down
Loading