|
1 | 1 | import json |
2 | | -from typing import Union |
| 2 | +from typing import Any, Union |
3 | 3 |
|
4 | 4 | from urllib.parse import parse_qsl, urlparse |
5 | 5 | import pytest |
@@ -510,7 +510,7 @@ def test_update_user_with_locale( |
510 | 510 | self.http_client, mock_user, 200 |
511 | 511 | ) |
512 | 512 |
|
513 | | - params = { |
| 513 | + params: dict[str, Any] = { |
514 | 514 | "first_name": "Marcelina", |
515 | 515 | "locale": "fr-FR", |
516 | 516 | } |
@@ -700,7 +700,7 @@ def test_authenticate_with_code( |
700 | 700 | mock_auth_response, |
701 | 701 | base_authentication_params, |
702 | 702 | ): |
703 | | - params = { |
| 703 | + params: dict[str, Any] = { |
704 | 704 | "code": "test_code", |
705 | 705 | "code_verifier": "test_code_verifier", |
706 | 706 | "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36", |
@@ -730,7 +730,7 @@ def test_authenticate_impersonator_with_code( |
730 | 730 | mock_auth_response_with_impersonator, |
731 | 731 | base_authentication_params, |
732 | 732 | ): |
733 | | - params = {"code": "test_code"} |
| 733 | + params: dict[str, Any] = {"code": "test_code"} |
734 | 734 |
|
735 | 735 | request_kwargs = capture_and_mock_http_client_request( |
736 | 736 | self.http_client, mock_auth_response_with_impersonator, 200 |
@@ -758,7 +758,7 @@ def test_authenticate_with_code_with_invitation_token( |
758 | 758 | mock_auth_response, |
759 | 759 | base_authentication_params, |
760 | 760 | ): |
761 | | - params = { |
| 761 | + params: dict[str, Any] = { |
762 | 762 | "code": "test_code", |
763 | 763 | "code_verifier": "test_code_verifier", |
764 | 764 | "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36", |
@@ -916,7 +916,7 @@ def test_authenticate_with_refresh_token( |
916 | 916 | mock_auth_refresh_token_response, |
917 | 917 | base_authentication_params, |
918 | 918 | ): |
919 | | - params = { |
| 919 | + params: dict[str, Any] = { |
920 | 920 | "refresh_token": "refresh_token_98765", |
921 | 921 | "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36", |
922 | 922 | "ip_address": "192.0.0.1", |
|
0 commit comments