Skip to content

Commit 972fb9e

Browse files
committed
mypy fix
1 parent 34a6068 commit 972fb9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/service-library/src/servicelib/aiohttp/requests_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ async def parse_request_body_as(
194194
# NOTE: model_schema can be 'list[T]' or 'dict[T]' which raise TypeError
195195
# with issubclass(model_schema, BaseModel)
196196
assert issubclass(model_schema_cls, BaseModel) # nosec
197-
return model_schema_cls.model_validate(body) # type: ignore [return-value]
197+
return model_schema_cls.model_validate(body)
198198

199199
# used for model_schema like 'list[T]' or 'dict[T]'
200200
return TypeAdapter(model_schema_cls).validate_python(body) # type: ignore[no-any-return]

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/nodeports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ async def upload_outputs( # pylint:disable=too-many-statements # noqa: PLR0915
167167
# generic case let's create an archive
168168
# only the filtered out files will be zipped
169169
tmp_folder = Path(
170-
await stack.enter_async_context(AioTemporaryDirectory()) # type: ignore[arg-type]
170+
await stack.enter_async_context(AioTemporaryDirectory())
171171
)
172172
tmp_file = tmp_folder / f"{src_folder.stem}.zip"
173173

0 commit comments

Comments
 (0)