Skip to content

Commit 954834c

Browse files
chore(deps-dev): bump mypy from 1.11.2 to 1.13.0 (#5440)
* chore(deps-dev): bump mypy from 1.11.2 to 1.13.0 Bumps [mypy](https://github.com/python/mypy) from 1.11.2 to 1.13.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v1.11.2...v1.13.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Making mypy happy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leandro Damascena <[email protected]>
1 parent 36b2768 commit 954834c

File tree

4 files changed

+37
-31
lines changed

4 files changed

+37
-31
lines changed

aws_lambda_powertools/event_handler/middlewares/openapi_validation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _prepare_response_content(
232232
for k, v in res.items()
233233
}
234234
elif dataclasses.is_dataclass(res):
235-
return dataclasses.asdict(res) # type: ignore[call-overload]
235+
return dataclasses.asdict(res) # type: ignore[arg-type]
236236
return res
237237

238238
def _get_body(self, app: EventHandlerInstance) -> dict[str, Any]:

aws_lambda_powertools/event_handler/openapi/encoders.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def jsonable_encoder( # noqa: PLR0911
8989

9090
# Dataclasses
9191
if dataclasses.is_dataclass(obj):
92-
obj_dict = dataclasses.asdict(obj) # type: ignore[call-overload]
92+
obj_dict = dataclasses.asdict(obj) # type: ignore[arg-type]
9393
return jsonable_encoder(
9494
obj_dict,
9595
include=include,

aws_lambda_powertools/utilities/idempotency/serialization/dataclass.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ def instantiate(cls, model_type: Any) -> BaseIdempotencySerializer:
4242

4343
if not is_dataclass(model_type):
4444
raise IdempotencyModelTypeError("Model type is not inherited of dataclass type")
45-
return cls(model=model_type)
45+
return cls(model=model_type) # type: ignore[arg-type]

poetry.lock

+34-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)