Skip to content

Commit d8c773c

Browse files
committed
Remove aliasing, format
1 parent 9ac71a0 commit d8c773c

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
from workos.types.authorization.environment_role import (
2-
EnvironmentRole as EnvironmentRole,
3-
EnvironmentRoleList as EnvironmentRoleList,
2+
EnvironmentRole,
3+
EnvironmentRoleList,
44
)
55
from workos.types.authorization.organization_role import (
6-
OrganizationRole as OrganizationRole,
7-
OrganizationRoleEvent as OrganizationRoleEvent,
8-
OrganizationRoleList as OrganizationRoleList,
9-
)
10-
from workos.types.authorization.permission import (
11-
Permission as Permission,
6+
OrganizationRole,
7+
OrganizationRoleEvent,
8+
OrganizationRoleList,
129
)
10+
from workos.types.authorization.permission import Permission
1311
from workos.types.authorization.role import (
14-
Role as Role,
15-
RoleList as RoleList,
12+
Role,
13+
RoleList,
1614
)

src/workos/types/events/event.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ class OrganizationRoleDeletedEvent(EventModel[OrganizationRoleEvent]):
322322
event: Literal["organization_role.deleted"]
323323

324324

325-
326325
class PasswordResetCreatedEvent(EventModel[PasswordResetCommon]):
327326
event: Literal["password_reset.created"]
328327

@@ -343,7 +342,6 @@ class PermissionDeletedEvent(EventModel[Permission]):
343342
event: Literal["permission.deleted"]
344343

345344

346-
347345
class RoleCreatedEvent(EventModel[EventRole]):
348346
event: Literal["role.created"]
349347

src/workos/types/webhooks/webhook.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ class OrganizationRoleDeletedWebhook(WebhookModel[OrganizationRoleEvent]):
328328
event: Literal["organization_role.deleted"]
329329

330330

331-
332331
class PasswordResetCreatedWebhook(WebhookModel[PasswordResetCommon]):
333332
event: Literal["password_reset.created"]
334333

@@ -349,7 +348,6 @@ class PermissionDeletedWebhook(WebhookModel[Permission]):
349348
event: Literal["permission.deleted"]
350349

351350

352-
353351
class RoleCreatedWebhook(WebhookModel[EventRole]):
354352
event: Literal["role.created"]
355353

tests/test_session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,6 @@ def get_client():
785785

786786
first_client = clients[0]
787787
for client in clients[1:]:
788-
assert client is first_client, (
789-
"All concurrent calls should return the same instance"
790-
)
788+
assert (
789+
client is first_client
790+
), "All concurrent calls should return the same instance"

0 commit comments

Comments
 (0)