Skip to content

Commit 25c5f36

Browse files
Moved type ignores into pyproject.toml
1 parent 7a6361c commit 25c5f36

98 files changed

Lines changed: 572 additions & 563 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,15 @@ follow_imports = "silent"
214214
plugins = [
215215
"pydantic.mypy"
216216
]
217+
disable_error_code = [
218+
"no-redef",
219+
"return-value",
220+
"var-annotated",
221+
"assignment",
222+
"call-arg",
223+
"arg-type",
224+
"override",
225+
]
217226

218227
[[tool.mypy.overrides]]
219228
module = [

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

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async def create_access_key(
2929
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3030
):
3131
if not id:
32-
id = None # type: ignore[assignment]
32+
id = None
3333
return await super().create_access_key(
3434
id,
3535
_request_timeout=_request_timeout,
@@ -54,9 +54,9 @@ async def add_role_to_application_user(
5454
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5555
):
5656
if not application_id:
57-
application_id = None # type: ignore[assignment]
57+
application_id = None
5858
if not role:
59-
role = None # type: ignore[assignment]
59+
role = None
6060
return await super().add_role_to_application_user(
6161
application_id,
6262
role,
@@ -65,7 +65,7 @@ async def add_role_to_application_user(
6565
_content_type=_content_type,
6666
_headers=_headers,
6767
_host_index=_host_index,
68-
) # type: ignore[arg-type]
68+
)
6969

7070
async def delete_access_key(
7171
self,
@@ -82,9 +82,9 @@ async def delete_access_key(
8282
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
8383
):
8484
if not application_id:
85-
application_id = None # type: ignore[assignment]
85+
application_id = None
8686
if not key_id:
87-
key_id = None # type: ignore[assignment]
87+
key_id = None
8888
return await super().delete_access_key(
8989
application_id,
9090
key_id,
@@ -110,9 +110,9 @@ async def remove_role_from_application_user(
110110
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
111111
):
112112
if not application_id:
113-
application_id = None # type: ignore[assignment]
113+
application_id = None
114114
if not role:
115-
role = None # type: ignore[assignment]
115+
role = None
116116
return await super().remove_role_from_application_user(
117117
application_id,
118118
role,
@@ -123,7 +123,7 @@ async def remove_role_from_application_user(
123123
_host_index=_host_index,
124124
)
125125

126-
async def get_app_by_access_key_id( # type: ignore[override]
126+
async def get_app_by_access_key_id(
127127
self,
128128
access_key_id: StrictStr,
129129
_request_timeout: Union[
@@ -137,7 +137,7 @@ async def get_app_by_access_key_id( # type: ignore[override]
137137
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
138138
) -> Optional[ExtendedConductorApplicationAdapter]:
139139
if not access_key_id:
140-
access_key_id = None # type: ignore[assignment]
140+
access_key_id = None
141141
result = await super().get_app_by_access_key_id(
142142
access_key_id,
143143
_request_timeout=_request_timeout,
@@ -146,7 +146,7 @@ async def get_app_by_access_key_id( # type: ignore[override]
146146
_headers=_headers,
147147
_host_index=_host_index,
148148
)
149-
return result # type: ignore[return-value]
149+
return result
150150

151151
async def get_access_keys(
152152
self,
@@ -162,7 +162,7 @@ async def get_access_keys(
162162
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
163163
):
164164
if not id:
165-
id = None # type: ignore[assignment]
165+
id = None
166166
return await super().get_access_keys(
167167
id,
168168
_request_timeout=_request_timeout,
@@ -187,9 +187,9 @@ async def toggle_access_key_status(
187187
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
188188
):
189189
if not application_id:
190-
application_id = None # type: ignore[assignment]
190+
application_id = None
191191
if not key_id:
192-
key_id = None # type: ignore[assignment]
192+
key_id = None
193193
return await super().toggle_access_key_status(
194194
application_id,
195195
key_id,
@@ -200,7 +200,7 @@ async def toggle_access_key_status(
200200
_host_index=_host_index,
201201
)
202202

203-
async def get_tags_for_application( # type: ignore[override]
203+
async def get_tags_for_application(
204204
self,
205205
id: StrictStr,
206206
_request_timeout: Union[
@@ -214,7 +214,7 @@ async def get_tags_for_application( # type: ignore[override]
214214
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
215215
) -> List[TagAdapter]:
216216
if not id:
217-
id = None # type: ignore[assignment]
217+
id = None
218218
result = await super().get_tags_for_application(
219219
id,
220220
_request_timeout=_request_timeout,
@@ -223,12 +223,12 @@ async def get_tags_for_application( # type: ignore[override]
223223
_headers=_headers,
224224
_host_index=_host_index,
225225
)
226-
return result # type: ignore[return-value]
226+
return result
227227

228228
async def put_tag_for_application(
229229
self,
230230
id: StrictStr,
231-
tag: List[TagAdapter], # type: ignore[override]
231+
tag: List[TagAdapter],
232232
_request_timeout: Union[
233233
None,
234234
Annotated[StrictFloat, Field(gt=0)],
@@ -240,12 +240,12 @@ async def put_tag_for_application(
240240
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
241241
) -> None:
242242
if not id:
243-
id = None # type: ignore[assignment]
243+
id = None
244244
if not tag:
245-
tag = None # type: ignore[assignment]
245+
tag = None
246246
return await super().put_tag_for_application(
247247
id,
248-
tag, # type: ignore[arg-type]
248+
tag,
249249
_request_timeout=_request_timeout,
250250
_request_auth=_request_auth,
251251
_content_type=_content_type,
@@ -256,7 +256,7 @@ async def put_tag_for_application(
256256
async def delete_tag_for_application(
257257
self,
258258
id: StrictStr,
259-
tag: List[TagAdapter], # type: ignore[override]
259+
tag: List[TagAdapter],
260260
_request_timeout: Union[
261261
None,
262262
Annotated[StrictFloat, Field(gt=0)],
@@ -268,20 +268,20 @@ async def delete_tag_for_application(
268268
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
269269
) -> None:
270270
if not id:
271-
id = None # type: ignore[assignment]
271+
id = None
272272
if not tag:
273-
tag = None # type: ignore[assignment]
273+
tag = None
274274
return await super().delete_tag_for_application(
275275
id,
276-
tag, # type: ignore[arg-type]
276+
tag,
277277
_request_timeout=_request_timeout,
278278
_request_auth=_request_auth,
279279
_content_type=_content_type,
280280
_headers=_headers,
281281
_host_index=_host_index,
282282
)
283283

284-
async def create_application( # type: ignore[override]
284+
async def create_application(
285285
self,
286286
create_or_update_application_request: CreateOrUpdateApplicationRequestAdapter,
287287
_request_timeout: Union[
@@ -302,9 +302,9 @@ async def create_application( # type: ignore[override]
302302
_headers=_headers,
303303
_host_index=_host_index,
304304
)
305-
return result # type: ignore[return-value]
305+
return result
306306

307-
async def update_application( # type: ignore[override]
307+
async def update_application(
308308
self,
309309
id: StrictStr,
310310
create_or_update_application_request: CreateOrUpdateApplicationRequestAdapter,
@@ -327,7 +327,7 @@ async def update_application( # type: ignore[override]
327327
_headers=_headers,
328328
_host_index=_host_index,
329329
)
330-
return result # type: ignore[return-value]
330+
return result
331331

332332
async def get_application(
333333
self,
@@ -350,9 +350,9 @@ async def get_application(
350350
_headers=_headers,
351351
_host_index=_host_index,
352352
)
353-
return result # type: ignore[return-value]
353+
return result
354354

355-
async def list_applications( # type: ignore[override]
355+
async def list_applications(
356356
self,
357357
_request_timeout: Union[
358358
None,
@@ -371,4 +371,4 @@ async def list_applications( # type: ignore[override]
371371
_headers=_headers,
372372
_host_index=_host_index,
373373
)
374-
return result # type: ignore[return-value]
374+
return result

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
class GroupResourceApiAdapter(GroupResourceApi):
15-
async def list_groups( # type: ignore[override]
15+
async def list_groups(
1616
self,
1717
_request_timeout: Union[
1818
None,
@@ -31,7 +31,7 @@ async def list_groups( # type: ignore[override]
3131
_headers=_headers,
3232
_host_index=_host_index,
3333
)
34-
return result # type: ignore[return-value]
34+
return result
3535

3636
async def get_group(
3737
self,
@@ -54,12 +54,12 @@ async def get_group(
5454
_headers=_headers,
5555
_host_index=_host_index,
5656
)
57-
return result # type: ignore[return-value]
57+
return result
5858

5959
async def upsert_group(
6060
self,
6161
id: StrictStr,
62-
upsert_group_request: UpsertGroupRequestAdapter, # type: ignore[override]
62+
upsert_group_request: UpsertGroupRequestAdapter,
6363
_request_timeout: Union[
6464
None,
6565
Annotated[StrictFloat, Field(gt=0)],
@@ -80,4 +80,4 @@ async def upsert_group(
8080
_host_index=_host_index,
8181
)
8282

83-
return result # type: ignore[return-value]
83+
return result

0 commit comments

Comments
 (0)