Skip to content

Commit 1b8654f

Browse files
leandrodamascenadependabot[bot]claude
authored
chore(deps): consolidate all open Dependabot updates (#8241)
* chore(deps-dev): bump the dev-dependencies group with 3 updates Bumps the dev-dependencies group with 3 updates: [coverage](https://github.com/coveragepy/coveragepy), [mypy](https://github.com/python/mypy) and [ruff](https://github.com/astral-sh/ruff). Updates `coverage` from 7.13.5 to 7.14.0 - [Release notes](https://github.com/coveragepy/coveragepy/releases) - [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst) - [Commits](coveragepy/coveragepy@7.13.5...7.14.0) Updates `mypy` from 1.20.2 to 2.1.0 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v1.20.2...v2.1.0) Updates `ruff` from 0.15.12 to 0.15.13 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.15.12...0.15.13) --- updated-dependencies: - dependency-name: coverage dependency-version: 7.14.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-dependencies - dependency-name: mypy dependency-version: 2.1.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: dev-dependencies - dependency-name: ruff dependency-version: 0.15.13 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs Bumps [cdklabs-generative-ai-cdk-constructs](https://github.com/awslabs/generative-ai-cdk-constructs) from 0.1.316 to 0.1.317. - [Release notes](https://github.com/awslabs/generative-ai-cdk-constructs/releases) - [Changelog](https://github.com/awslabs/generative-ai-cdk-constructs/blob/main/CHANGELOG.md) - [Commits](awslabs/generative-ai-cdk-constructs@v0.1.316...v0.1.317) --- updated-dependencies: - dependency-name: cdklabs-generative-ai-cdk-constructs dependency-version: 0.1.317 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps-dev): bump types-protobuf Bumps [types-protobuf](https://github.com/python/typeshed) from 7.34.1.20260508 to 7.34.1.20260518. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-protobuf dependency-version: 7.34.1.20260518 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump pydantic-settings from 2.14.0 to 2.14.1 Bumps [pydantic-settings](https://github.com/pydantic/pydantic-settings) from 2.14.0 to 2.14.1. - [Release notes](https://github.com/pydantic/pydantic-settings/releases) - [Commits](pydantic/pydantic-settings@v2.14.0...v2.14.1) --- updated-dependencies: - dependency-name: pydantic-settings dependency-version: 2.14.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps-dev): bump types-requests Bumps [types-requests](https://github.com/python/typeshed) from 2.33.0.20260408 to 2.33.0.20260518. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-requests dependency-version: 2.33.0.20260518 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps-dev): bump aws-cdk in the aws-cdk group Bumps the aws-cdk group with 1 update: [aws-cdk](https://github.com/aws/aws-cdk-cli/tree/HEAD/packages/aws-cdk). Updates `aws-cdk` from 2.1121.0 to 2.1122.0 - [Release notes](https://github.com/aws/aws-cdk-cli/releases) - [Commits](https://github.com/aws/aws-cdk-cli/commits/aws-cdk@v2.1122.0/packages/aws-cdk) --- updated-dependencies: - dependency-name: aws-cdk dependency-version: 2.1122.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: aws-cdk ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump codecov/codecov-action in the github-actions group Bumps the github-actions group with 1 update: [codecov/codecov-action](https://github.com/codecov/codecov-action). Updates `codecov/codecov-action` from 6.0.0 to 6.0.1 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@57e3a13...e79a696) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: 6.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump idna from 3.10 to 3.15 in /docs Bumps [idna](https://github.com/kjd/idna) from 3.10 to 3.15. - [Release notes](https://github.com/kjd/idna/releases) - [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.md) - [Commits](kjd/idna@v3.10...v3.15) --- updated-dependencies: - dependency-name: idna dependency-version: '3.15' dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump pymdown-extensions from 10.16.1 to 10.21.3 in /docs Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 10.16.1 to 10.21.3. - [Release notes](https://github.com/facelessuser/pymdown-extensions/releases) - [Commits](facelessuser/pymdown-extensions@10.16.1...10.21.3) --- updated-dependencies: - dependency-name: pymdown-extensions dependency-version: 10.21.3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps-dev): bump pymdown-extensions from 10.16.1 to 10.21.3 Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 10.16.1 to 10.21.3. - [Release notes](https://github.com/facelessuser/pymdown-extensions/releases) - [Commits](facelessuser/pymdown-extensions@10.16.1...10.21.3) --- updated-dependencies: - dependency-name: pymdown-extensions dependency-version: 10.21.3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump idna from 3.10 to 3.15 Bumps [idna](https://github.com/kjd/idna) from 3.10 to 3.15. - [Release notes](https://github.com/kjd/idna/releases) - [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.md) - [Commits](kjd/idna@v3.10...v3.15) --- updated-dependencies: - dependency-name: idna dependency-version: '3.15' dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix ruff lint errors after dependency updates Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: fix mypy errors from stricter type checking in new version Update RedisClientProtocol.delete to use variadic *names parameter matching the actual redis-py signature. Add casts for _init_client returns and type annotation for _regex_cache. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * empty --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7fc7b2f commit 1b8654f

15 files changed

Lines changed: 396 additions & 350 deletions

File tree

.github/workflows/quality_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- name: Complexity baseline
7979
run: make complexity-baseline
8080
- name: Upload coverage to Codecov
81-
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # 6.0.0
81+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # 6.0.1
8282
with:
8383
token: ${{ secrets.CODECOV_TOKEN }}
8484
files: ./coverage.xml

aws_lambda_powertools/utilities/data_masking/provider/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from collections.abc import Callable
1212

1313
PRESERVE_CHARS = set("-_. ")
14-
_regex_cache = {}
14+
_regex_cache: dict[str, re.Pattern[str]] = {}
1515

1616
JSON_DUMPS_CALL = functools.partial(json.dumps, ensure_ascii=False)
1717

aws_lambda_powertools/utilities/idempotency/persistence/redis.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import logging
66
from contextlib import contextmanager
77
from datetime import timedelta
8-
from typing import Any, Literal, Protocol
8+
from typing import Any, Literal, Protocol, cast
99

1010
import redis
1111
from typing_extensions import TypeAlias, deprecated
@@ -76,7 +76,7 @@ def set( # noqa
7676
) -> bool | None:
7777
raise NotImplementedError
7878

79-
def delete(self, keys: bytes | str | memoryview) -> Any:
79+
def delete(self, *names: bytes | str | memoryview) -> Any:
8080
raise NotImplementedError
8181

8282

@@ -185,22 +185,25 @@ def _init_client(self) -> RedisClientProtocol:
185185
try:
186186
if self.url:
187187
logger.debug(f"Using URL format to connect to Cache: {self.host}")
188-
return client.from_url(url=self.url)
188+
return cast(RedisClientProtocol, client.from_url(url=self.url))
189189
else:
190190
# Cache in cluster mode doesn't support db parameter
191191
extra_param_connection: dict[str, Any] = {}
192192
if self.mode != "cluster":
193193
extra_param_connection = {"db": self.db_index}
194194

195195
logger.debug(f"Using arguments to connect to Cache: {self.host}")
196-
return client(
197-
host=self.host,
198-
port=self.port,
199-
username=self.username,
200-
password=self.password,
201-
decode_responses=True,
202-
ssl=self.ssl,
203-
**extra_param_connection,
196+
return cast(
197+
RedisClientProtocol,
198+
client(
199+
host=self.host,
200+
port=self.port,
201+
username=self.username,
202+
password=self.password,
203+
decode_responses=True,
204+
ssl=self.ssl,
205+
**extra_param_connection,
206+
),
204207
)
205208
except redis.exceptions.ConnectionError as exc:
206209
logger.debug(f"Cannot connect to Cache endpoint: {self.host}")

benchmark/src/instrumented/main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from aws_lambda_powertools import (Logger, Metrics, Tracer)
2-
1+
from aws_lambda_powertools import Logger, Metrics, Tracer
32

43
# Initialize core utilities
54
logger = Logger()
@@ -13,5 +12,5 @@
1312
@tracer.capture_lambda_handler
1413
def handler(event, context):
1514
return {
16-
"message": "success"
17-
}
15+
"message": "success",
16+
}

benchmark/src/reference/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
def handler(event, context):
22
return {
3-
"message": "success"
4-
}
3+
"message": "success",
4+
}

docs/requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ griffe==1.13.0 \
147147
--hash=sha256:246ea436a5e78f7fbf5f24ca8a727bb4d2a4b442a2959052eea3d0bfe9a076e0 \
148148
--hash=sha256:470fde5b735625ac0a36296cd194617f039e9e83e301fcbd493e2b58382d0559
149149
# via mkdocstrings-python
150-
idna==3.10 \
151-
--hash=sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9 \
152-
--hash=sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3
150+
idna==3.15 \
151+
--hash=sha256:048adeaf8c2d788c40fee287673ccaa74c24ffd8dcf09ffa555a2fbb59f10ac8 \
152+
--hash=sha256:ca962446ea538f7092a95e057da437618e886f4d349216d2b1e294abfdb65fdc
153153
# via requests
154154
jinja2==3.1.6 \
155155
--hash=sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d \
@@ -324,9 +324,9 @@ pygments==2.19.2 \
324324
--hash=sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887 \
325325
--hash=sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b
326326
# via mkdocs-material
327-
pymdown-extensions==10.16.1 \
328-
--hash=sha256:aace82bcccba3efc03e25d584e6a22d27a8e17caa3f4dd9f207e49b787aa9a91 \
329-
--hash=sha256:d6ba157a6c03146a7fb122b2b9a121300056384eafeec9c9f9e584adfdb2a32d
327+
pymdown-extensions==10.21.3 \
328+
--hash=sha256:72cfcf55f07aea0d4af2c4f11dd4e52466ddfb1bb819673146398e0bd3a77354 \
329+
--hash=sha256:d7a5d08014fc571e80ca21dd6f854e31f94c489800350564d55d15b3c41e76b6
330330
# via
331331
# mkdocs-material
332332
# mkdocstrings

examples/idempotency/src/getting_started_with_idempotency_redis_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
max_connections=1000,
2222
)
2323

24-
persistence_layer = CachePersistenceLayer(client=client)
24+
persistence_layer = CachePersistenceLayer(client=client) # type: ignore[arg-type]
2525

2626

2727
@dataclass

examples/idempotency/src/using_redis_client_with_local_certs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
ssl_ca_certs=f"{abs_lambda_path()}/certs/cache_ca.pem", # (4)!
2828
)
2929

30-
persistence_layer = CachePersistenceLayer(client=redis_client)
30+
persistence_layer = CachePersistenceLayer(client=redis_client) # type: ignore[arg-type]
3131
config = IdempotencyConfig(
3232
expires_after_seconds=2 * 60, # 2 minutes
3333
)

layer_v3/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python3
22

33
import aws_cdk as cdk
4-
54
from layer.canary_stack import CanaryStack
65
from layer.layer_stack import LayerStack
76

layer_v3/layer/canary/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def on_event(event, context):
6666

6767
def on_create(event):
6868
props = event["ResourceProperties"]
69-
logger.info("create new resource with properties %s" % props)
69+
logger.info(f"create new resource with properties {props}")
7070
handler(event)
7171

7272

0 commit comments

Comments
 (0)