Skip to content

Commit f7ca5b0

Browse files
chore(deps-dev): bump mypy from 1.4.1 to 1.8.0 (#3710)
* chore(deps-dev): bump mypy from 1.4.1 to 1.8.0 Bumps [mypy](https://github.com/python/mypy) from 1.4.1 to 1.8.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v1.4.1...v1.8.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fixing mypy problems --------- 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 9b5245e commit f7ca5b0

File tree

3 files changed

+33
-32
lines changed

3 files changed

+33
-32
lines changed

aws_lambda_powertools/metrics/provider/cloudwatch_emf/cloudwatch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ def serialize_metric_set(
241241
],
242242
},
243243
# NOTE: Mypy doesn't recognize splats '** syntax' in TypedDict
244-
**dimensions, # type: ignore[misc] # "service": "test_service"
245-
**metadata, # "username": "test"
244+
**dimensions, # "service": "test_service"
245+
**metadata, # type: ignore[typeddict-item] # "username": "test"
246246
**metric_names_and_values, # "single_metric": 1.0
247247
}
248248

examples/idempotency/src/working_with_idempotent_function_custom_output_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, order_id: int):
3030

3131

3232
def order_to_dict(x: Type[OrderOutput]) -> Dict: # (1)!
33-
return x.__dict__
33+
return dict(x.__dict__)
3434

3535

3636
def dict_to_order(x: Dict) -> OrderOutput: # (2)!

poetry.lock

Lines changed: 30 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)