From 87fd3152b27eb5382ac66f4e2707f36403b74823 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Jul 2023 20:31:25 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump cfn-lint from 0.79.4 to 0.79.5 Bumps [cfn-lint](https://github.com/aws-cloudformation/cfn-python-lint) from 0.79.4 to 0.79.5. - [Release notes](https://github.com/aws-cloudformation/cfn-python-lint/releases) - [Changelog](https://github.com/aws-cloudformation/cfn-lint/blob/main/CHANGELOG.md) - [Commits](https://github.com/aws-cloudformation/cfn-python-lint/compare/v0.79.4...v0.79.5) --- updated-dependencies: - dependency-name: cfn-lint dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- poetry.lock | 8 ++++---- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index a47307abccc..b63b42aed9c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -365,13 +365,13 @@ files = [ [[package]] name = "cfn-lint" -version = "0.79.4" +version = "0.79.5" description = "Checks CloudFormation templates for practices and behaviour that could potentially be improved" optional = false python-versions = ">=3.7, <=4.0, !=4.0" files = [ - {file = "cfn-lint-0.79.4.tar.gz", hash = "sha256:d4ddb83907b4d385ac958763486040591302f9aeb33d49b14399f580fddef1ae"}, - {file = "cfn_lint-0.79.4-py3-none-any.whl", hash = "sha256:86ca9873fefb40ccf321d0dc9b9c2fe1f6cc3aadb373bc10ae6fc5a54e37cf5b"}, + {file = "cfn-lint-0.79.5.tar.gz", hash = "sha256:7a00dba8f70b8a92c38bfc8f45e2ab20cedad5c49054a46f1ce931e48fc1cd0c"}, + {file = "cfn_lint-0.79.5-py3-none-any.whl", hash = "sha256:3054a2e407f77b3115c41de49fe2c11d728d53ab7be4ae478c1b5ff0e21331b7"}, ] [package.dependencies] @@ -2692,4 +2692,4 @@ validation = ["fastjsonschema"] [metadata] lock-version = "2.0" python-versions = "^3.7.4" -content-hash = "f75331de0d0c9dadeeaf9a0bec41adfe9e124631bb5351d28575aa66c7a0a239" +content-hash = "569cc757c9b5d86c44935c9a48f24e8ca32fdb83a1139e3e1c6673822f676daa" diff --git a/pyproject.toml b/pyproject.toml index 10e67e6e520..6ddca5b49db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,7 +86,7 @@ all = ["pydantic", "aws-xray-sdk", "fastjsonschema"] aws-sdk = ["boto3"] [tool.poetry.group.dev.dependencies] -cfn-lint = "0.79.4" +cfn-lint = "0.79.5" mypy = "^1.1.1" types-python-dateutil = "^2.8.19.6" httpx = ">=0.23.3,<0.25.0" From 4e82d4adac101560cd58f7a94f6f35d55f47b133 Mon Sep 17 00:00:00 2001 From: Leandro Damascena Date: Fri, 28 Jul 2023 21:52:25 +0100 Subject: [PATCH 2/2] fix mypy error --- examples/batch_processing/src/extending_processor_handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/batch_processing/src/extending_processor_handlers.py b/examples/batch_processing/src/extending_processor_handlers.py index 73af5710981..1e50c406c09 100644 --- a/examples/batch_processing/src/extending_processor_handlers.py +++ b/examples/batch_processing/src/extending_processor_handlers.py @@ -1,5 +1,5 @@ import json -from typing import Any +from typing import Any, Dict from aws_lambda_powertools import Logger, Metrics, Tracer from aws_lambda_powertools.metrics import MetricUnit @@ -16,7 +16,7 @@ class MyProcessor(BatchProcessor): - def success_handler(self, record: dict[str, Any], result: Any) -> SuccessResponse: + def success_handler(self, record: Dict[str, Any], result: Any) -> SuccessResponse: metrics.add_metric(name="BatchRecordSuccesses", unit=MetricUnit.Count, value=1) return super().success_handler(record, result)