Skip to content

Commit 956198e

Browse files
Fix ruff issues after merge
1 parent 7edee18 commit 956198e

3 files changed

Lines changed: 17 additions & 21 deletions

File tree

src/conductor/asyncio_client/adapters/api/application_resource_api.py

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async def create_access_key(
1616
# Convert empty application id to None to prevent sending invalid data to server
1717
if not id:
1818
id = None
19-
return await super().create_access_key(id=id, *args, **kwargs)
19+
return await super().create_access_key(id, *args, **kwargs)
2020

2121
async def add_role_to_application_user(
2222
self, application_id: StrictStr, role: StrictStr, *args, **kwargs
@@ -26,9 +26,7 @@ async def add_role_to_application_user(
2626
application_id = None
2727
if not role:
2828
role = None
29-
return await super().add_role_to_application_user(
30-
application_id=application_id, role=role, *args, **kwargs
31-
)
29+
return await super().add_role_to_application_user(application_id, role, *args, **kwargs)
3230

3331
async def delete_access_key(
3432
self,
@@ -42,9 +40,7 @@ async def delete_access_key(
4240
application_id = None
4341
if not key_id:
4442
key_id = None
45-
return await super().delete_access_key(
46-
application_id=application_id, key_id=key_id, *args, **kwargs
47-
)
43+
return await super().delete_access_key(application_id, key_id, *args, **kwargs)
4844

4945
async def remove_role_from_application_user(
5046
self,
@@ -59,20 +55,20 @@ async def remove_role_from_application_user(
5955
if not role:
6056
role = None
6157
return await super().remove_role_from_application_user(
62-
application_id=application_id, role=role, *args, **kwargs
58+
application_id, role, *args, **kwargs
6359
)
6460

6561
async def get_app_by_access_key_id(self, access_key_id: StrictStr, *args, **kwargs):
6662
# Convert empty access_key_id to None to prevent sending invalid data to server
6763
if not access_key_id:
6864
access_key_id = None
69-
return await super().get_app_by_access_key_id(access_key_id=access_key_id, *args, **kwargs)
65+
return await super().get_app_by_access_key_id(access_key_id, *args, **kwargs)
7066

7167
async def get_access_keys(self, id: StrictStr, *args, **kwargs):
7268
# Convert empty application id to None to prevent sending invalid data to server
7369
if not id:
7470
id = None
75-
return await super().get_access_keys(id=id, *args, **kwargs)
71+
return await super().get_access_keys(id, *args, **kwargs)
7672

7773
async def toggle_access_key_status(
7874
self, application_id: StrictStr, key_id: StrictStr, *args, **kwargs
@@ -82,15 +78,13 @@ async def toggle_access_key_status(
8278
application_id = None
8379
if not key_id:
8480
key_id = None
85-
return await super().toggle_access_key_status(
86-
application_id=application_id, key_id=key_id, *args, **kwargs
87-
)
81+
return await super().toggle_access_key_status(application_id, key_id, *args, **kwargs)
8882

8983
async def get_tags_for_application(self, application_id: StrictStr, *args, **kwargs):
9084
# Convert empty application_id to None to prevent sending invalid data to server
9185
if not application_id:
9286
application_id = None
93-
return await super().get_tags_for_application(id=application_id, *args, **kwargs)
87+
return await super().get_tags_for_application(application_id, *args, **kwargs)
9488

9589
async def delete_tag_for_application(
9690
self, id: StrictStr, tag: List[Tag], *args, **kwargs
@@ -100,4 +94,4 @@ async def delete_tag_for_application(
10094
id = None
10195
if not tag:
10296
tag = None
103-
return await super().delete_tag_for_application(id=id, tag=tag, *args, **kwargs)
97+
return await super().delete_tag_for_application(id, tag, *args, **kwargs)

src/conductor/asyncio_client/adapters/api/user_resource_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async def get_granted_permissions(
1414
# Convert empty user_id to None to prevent sending invalid data to server
1515
if not user_id:
1616
user_id = None
17-
return await super().get_granted_permissions(user_id=user_id, *args, **kwargs)
17+
return await super().get_granted_permissions(user_id, *args, **kwargs)
1818

1919
async def get_user(
2020
self,
@@ -25,7 +25,7 @@ async def get_user(
2525
# Convert empty user id to None to prevent sending invalid data to server
2626
if not id:
2727
id = None
28-
return await super().get_user(id=id, *args, **kwargs)
28+
return await super().get_user(id, *args, **kwargs)
2929

3030
async def upsert_user(
3131
self,
@@ -37,7 +37,7 @@ async def upsert_user(
3737
# Convert empty user id to None to prevent sending invalid data to server
3838
if not id:
3939
id = None
40-
return await super().upsert_user(id=id, upsert_user_request=upsert_user_request, *args, **kwargs)
40+
return await super().upsert_user(id, upsert_user_request, *args, **kwargs)
4141

4242
async def delete_user(
4343
self,
@@ -48,4 +48,4 @@ async def delete_user(
4848
# Convert empty user id to None to prevent sending invalid data to server
4949
if not id:
5050
id = None
51-
return await super().delete_user(id=id, *args, **kwargs)
51+
return await super().delete_user(id, *args, **kwargs)

src/conductor/client/adapters/models/conductor_user_adapter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
from typing import ClassVar, Dict
2+
13
from conductor.client.codegen.models import ConductorUser
24

35

46
class ConductorUserAdapter(ConductorUser):
5-
swagger_types = {
7+
swagger_types: ClassVar[Dict[str, str]] = {
68
**ConductorUser.swagger_types,
79
"orkes_app": "bool",
810
"orkes_api_gateway": "bool",
911
"contact_information": "dict(str, str)",
1012
}
1113

12-
attribute_map = {
14+
attribute_map: ClassVar[Dict[str, str]] = {
1315
**ConductorUser.attribute_map,
1416
"orkes_app": "orkesApp",
1517
"orkes_api_gateway": "orkesApiGateway",

0 commit comments

Comments
 (0)