diff --git a/google/auth/aio/transport/aiohttp.py b/google/auth/aio/transport/aiohttp.py index 074d1491c..854fd5c18 100644 --- a/google/auth/aio/transport/aiohttp.py +++ b/google/auth/aio/transport/aiohttp.py @@ -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 diff --git a/google/auth/aio/transport/sessions.py b/google/auth/aio/transport/sessions.py index fea7cbbb2..8045911cb 100644 --- a/google/auth/aio/transport/sessions.py +++ b/google/auth/aio/transport/sessions.py @@ -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: diff --git a/google/auth/transport/_aiohttp_requests.py b/google/auth/transport/_aiohttp_requests.py index bc4d9dc69..91311de54 100644 --- a/google/auth/transport/_aiohttp_requests.py +++ b/google/auth/transport/_aiohttp_requests.py @@ -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 diff --git a/google/auth/transport/requests.py b/google/auth/transport/requests.py index 23a69783d..63868f656 100644 --- a/google/auth/transport/requests.py +++ b/google/auth/transport/requests.py @@ -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 diff --git a/google/oauth2/webauthn_handler.py b/google/oauth2/webauthn_handler.py index e27c7e099..d46832dfd 100644 --- a/google/oauth2/webauthn_handler.py +++ b/google/oauth2/webauthn_handler.py @@ -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 diff --git a/tests/oauth2/test_webauthn_types.py b/tests/oauth2/test_webauthn_types.py index 5231d2189..2fda99821 100644 --- a/tests/oauth2/test_webauthn_types.py +++ b/tests/oauth2/test_webauthn_types.py @@ -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": { @@ -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(