Skip to content

chore(deps-dev): bump mypy from 1.11.2 to 1.13.0 #5440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def _prepare_response_content(
for k, v in res.items()
}
elif dataclasses.is_dataclass(res):
return dataclasses.asdict(res) # type: ignore[call-overload]
return dataclasses.asdict(res) # type: ignore[arg-type]
return res

def _get_body(self, app: EventHandlerInstance) -> dict[str, Any]:
Expand Down
2 changes: 1 addition & 1 deletion aws_lambda_powertools/event_handler/openapi/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def jsonable_encoder( # noqa: PLR0911

# Dataclasses
if dataclasses.is_dataclass(obj):
obj_dict = dataclasses.asdict(obj) # type: ignore[call-overload]
obj_dict = dataclasses.asdict(obj) # type: ignore[arg-type]
return jsonable_encoder(
obj_dict,
include=include,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def instantiate(cls, model_type: Any) -> BaseIdempotencySerializer:

if not is_dataclass(model_type):
raise IdempotencyModelTypeError("Model type is not inherited of dataclass type")
return cls(model=model_type)
return cls(model=model_type) # type: ignore[arg-type]
62 changes: 34 additions & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.