Skip to content

Commit fe0ae1e

Browse files
committed
Format
1 parent af48c82 commit fe0ae1e

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

tests/test_user_management.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,10 @@ def mock_invitations_multiple_pages(self):
150150
class TestUserManagementBase(UserManagementFixtures):
151151
@pytest.fixture(autouse=True)
152152
def setup(self, sync_client_configuration_and_http_client_for_test):
153-
client_configuration, http_client = (
154-
sync_client_configuration_and_http_client_for_test
155-
)
153+
(
154+
client_configuration,
155+
http_client,
156+
) = sync_client_configuration_and_http_client_for_test
156157
self.http_client = http_client
157158
self.user_management = UserManagement(
158159
http_client=self.http_client, client_configuration=client_configuration
@@ -329,7 +330,7 @@ def test_authorization_url_has_expected_query_params_with_screen_hint(self):
329330
connection_id=connection_id,
330331
screen_hint=screen_hint,
331332
redirect_uri=redirect_uri,
332-
provider="authkit"
333+
provider="authkit",
333334
)
334335

335336
parsed_url = urlparse(authorization_url)
@@ -340,7 +341,7 @@ def test_authorization_url_has_expected_query_params_with_screen_hint(self):
340341
"redirect_uri": redirect_uri,
341342
"connection_id": connection_id,
342343
"response_type": RESPONSE_TYPE_CODE,
343-
"provider": "authkit"
344+
"provider": "authkit",
344345
}
345346

346347
def test_get_jwks_url(self):
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
from typing import Literal
22

3-
ScreenHintType = Literal[
4-
"sign-up", "sign-in"
5-
]
3+
ScreenHintType = Literal["sign-up", "sign-in"]

workos/user_management.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@
4848
from workos.types.user_management.user_management_provider_type import (
4949
UserManagementProviderType,
5050
)
51-
from workos.types.user_management.screen_hint import (
52-
ScreenHintType
53-
)
51+
from workos.types.user_management.screen_hint import ScreenHintType
5452
from workos.typing.sync_or_async import SyncOrAsync
5553
from workos.utils.http_client import AsyncHTTPClient, SyncHTTPClient
5654
from workos.utils.pagination_order import PaginationOrder
@@ -419,7 +417,8 @@ def _authenticate_with(
419417
self,
420418
payload: AuthenticateWithParameters,
421419
response_model: Type[AuthenticationResponseType],
422-
) -> SyncOrAsync[AuthenticationResponseType]: ...
420+
) -> SyncOrAsync[AuthenticationResponseType]:
421+
...
423422

424423
def authenticate_with_password(
425424
self,

0 commit comments

Comments
 (0)