Skip to content

Commit b20f062

Browse files
Merge branch 'develop' into dependabot/npm_and_yarn/develop/aws-cdk-2.1010.0
2 parents 5f1d7e1 + aaeb44c commit b20f062

File tree

16 files changed

+78
-47
lines changed

16 files changed

+78
-47
lines changed

CHANGELOG.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,18 @@
77
## Code Refactoring
88

99
* **batch:** use standard collections for types ([#6475](https://github.com/aws-powertools/powertools-lambda-python/issues/6475))
10+
* **data_masking:** use standard collections for types ([#6493](https://github.com/aws-powertools/powertools-lambda-python/issues/6493))
11+
* **event_source:** use standard collections for types ([#6479](https://github.com/aws-powertools/powertools-lambda-python/issues/6479))
12+
* **feature_flags:** use standard collections for type ([#6489](https://github.com/aws-powertools/powertools-lambda-python/issues/6489))
13+
* **idempotency:** use standard collections for types ([#6487](https://github.com/aws-powertools/powertools-lambda-python/issues/6487))
1014
* **logger:** use standard collections for types ([#6471](https://github.com/aws-powertools/powertools-lambda-python/issues/6471))
1115
* **metrics:** use standard collections for types ([#6472](https://github.com/aws-powertools/powertools-lambda-python/issues/6472))
16+
* **middleware_factory:** use standard collections for types ([#6485](https://github.com/aws-powertools/powertools-lambda-python/issues/6485))
17+
* **parameters:** use standard collections for types ([#6481](https://github.com/aws-powertools/powertools-lambda-python/issues/6481))
18+
* **streaming:** use standard collections for types ([#6483](https://github.com/aws-powertools/powertools-lambda-python/issues/6483))
19+
* **tests:** use standard collections for types + refactor code ([#6497](https://github.com/aws-powertools/powertools-lambda-python/issues/6497))
1220
* **tracer:** use standard collections for types ([#6473](https://github.com/aws-powertools/powertools-lambda-python/issues/6473))
21+
* **validation:** use standard collections for types ([#6491](https://github.com/aws-powertools/powertools-lambda-python/issues/6491))
1322

1423
## Documentation
1524

@@ -25,32 +34,34 @@
2534

2635
## Maintenance
2736

37+
* **ci:** new pre-release 3.10.1a5 ([#6498](https://github.com/aws-powertools/powertools-lambda-python/issues/6498))
2838
* **ci:** new pre-release 3.10.1a4 ([#6463](https://github.com/aws-powertools/powertools-lambda-python/issues/6463))
2939
* **ci:** new pre-release 3.10.1a0 ([#6431](https://github.com/aws-powertools/powertools-lambda-python/issues/6431))
3040
* **ci:** new pre-release 3.10.1a1 ([#6437](https://github.com/aws-powertools/powertools-lambda-python/issues/6437))
3141
* **ci:** new pre-release 3.10.1a2 ([#6446](https://github.com/aws-powertools/powertools-lambda-python/issues/6446))
3242
* **ci:** new pre-release 3.10.1a3 ([#6455](https://github.com/aws-powertools/powertools-lambda-python/issues/6455))
33-
* **ci:** new pre-release 3.10.1a5 ([#6498](https://github.com/aws-powertools/powertools-lambda-python/issues/6498))
3443
* **deps:** bump codecov/codecov-action from 5.4.0 to 5.4.2 ([#6458](https://github.com/aws-powertools/powertools-lambda-python/issues/6458))
35-
* **deps:** bump typing-extensions from 4.13.1 to 4.13.2 ([#6451](https://github.com/aws-powertools/powertools-lambda-python/issues/6451))
3644
* **deps:** bump pydantic from 2.11.2 to 2.11.3 ([#6427](https://github.com/aws-powertools/powertools-lambda-python/issues/6427))
45+
* **deps:** bump typing-extensions from 4.13.1 to 4.13.2 ([#6451](https://github.com/aws-powertools/powertools-lambda-python/issues/6451))
3746
* **deps:** bump actions/setup-node from 4.3.0 to 4.4.0 ([#6457](https://github.com/aws-powertools/powertools-lambda-python/issues/6457))
38-
* **deps-dev:** bump boto3-stubs from 1.37.33 to 1.37.34 ([#6459](https://github.com/aws-powertools/powertools-lambda-python/issues/6459))
47+
* **deps-dev:** bump cfn-lint from 1.33.1 to 1.33.2 ([#6450](https://github.com/aws-powertools/powertools-lambda-python/issues/6450))
48+
* **deps-dev:** bump ruff from 0.11.4 to 0.11.5 ([#6443](https://github.com/aws-powertools/powertools-lambda-python/issues/6443))
49+
* **deps-dev:** bump aws-cdk-aws-lambda-python-alpha from 2.188.0a0 to 2.189.0a0 ([#6444](https://github.com/aws-powertools/powertools-lambda-python/issues/6444))
3950
* **deps-dev:** bump aws-cdk-lib from 2.188.0 to 2.189.0 ([#6445](https://github.com/aws-powertools/powertools-lambda-python/issues/6445))
4051
* **deps-dev:** bump cfn-lint from 1.33.0 to 1.33.1 ([#6442](https://github.com/aws-powertools/powertools-lambda-python/issues/6442))
41-
* **deps-dev:** bump aws-cdk-aws-lambda-python-alpha from 2.188.0a0 to 2.189.0a0 ([#6444](https://github.com/aws-powertools/powertools-lambda-python/issues/6444))
4252
* **deps-dev:** bump cdklabs-generative-ai-cdk-constructs from 0.1.301 to 0.1.302 ([#6460](https://github.com/aws-powertools/powertools-lambda-python/issues/6460))
43-
* **deps-dev:** bump ruff from 0.11.4 to 0.11.5 ([#6443](https://github.com/aws-powertools/powertools-lambda-python/issues/6443))
53+
* **deps-dev:** bump boto3-stubs from 1.37.33 to 1.37.34 ([#6459](https://github.com/aws-powertools/powertools-lambda-python/issues/6459))
4454
* **deps-dev:** bump aws-cdk-aws-lambda-python-alpha from 2.189.0a0 to 2.189.1a0 ([#6462](https://github.com/aws-powertools/powertools-lambda-python/issues/6462))
55+
* **deps-dev:** bump aws-cdk-lib from 2.189.0 to 2.189.1 ([#6461](https://github.com/aws-powertools/powertools-lambda-python/issues/6461))
4556
* **deps-dev:** bump boto3-stubs from 1.37.29 to 1.37.31 ([#6433](https://github.com/aws-powertools/powertools-lambda-python/issues/6433))
4657
* **deps-dev:** bump aws-cdk-aws-lambda-python-alpha from 2.187.0a0 to 2.188.0a0 ([#6434](https://github.com/aws-powertools/powertools-lambda-python/issues/6434))
4758
* **deps-dev:** bump ruff from 0.11.3 to 0.11.4 ([#6428](https://github.com/aws-powertools/powertools-lambda-python/issues/6428))
4859
* **deps-dev:** bump pytest-cov from 6.1.0 to 6.1.1 ([#6429](https://github.com/aws-powertools/powertools-lambda-python/issues/6429))
4960
* **deps-dev:** bump cfn-lint from 1.32.4 to 1.33.0 ([#6430](https://github.com/aws-powertools/powertools-lambda-python/issues/6430))
50-
* **deps-dev:** bump cfn-lint from 1.33.1 to 1.33.2 ([#6450](https://github.com/aws-powertools/powertools-lambda-python/issues/6450))
51-
* **deps-dev:** bump aws-cdk-lib from 2.189.0 to 2.189.1 ([#6461](https://github.com/aws-powertools/powertools-lambda-python/issues/6461))
52-
* **deps-dev:** bump sentry-sdk from 2.25.1 to 2.26.1 ([#6477](https://github.com/aws-powertools/powertools-lambda-python/issues/6477))
5361
* **deps-dev:** bump boto3-stubs from 1.37.31 to 1.37.33 ([#6449](https://github.com/aws-powertools/powertools-lambda-python/issues/6449))
62+
* **deps-dev:** bump sentry-sdk from 2.25.1 to 2.26.1 ([#6477](https://github.com/aws-powertools/powertools-lambda-python/issues/6477))
63+
* **deps-dev:** bump boto3-stubs from 1.37.34 to 1.37.35 ([#6504](https://github.com/aws-powertools/powertools-lambda-python/issues/6504))
64+
* **deps-dev:** bump cfn-lint from 1.33.2 to 1.34.0 ([#6502](https://github.com/aws-powertools/powertools-lambda-python/issues/6502))
5465

5566

5667
<a name="v3.10.0"></a>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Exposes version constant to avoid circular dependencies."""
22

3-
VERSION = "3.10.1a5"
3+
VERSION = "3.10.1a6"

poetry.lock

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

provenance/3.10.1a6/multiple.intoto.jsonl

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aws_lambda_powertools"
3-
version = "3.10.1a5"
3+
version = "3.10.1a6"
44
description = "Powertools for AWS Lambda (Python) is a developer toolkit to implement Serverless best practices and increase developer velocity."
55
authors = ["Amazon Web Services"]
66
include = ["aws_lambda_powertools/py.typed", "THIRD-PARTY-LICENSES"]
@@ -107,7 +107,7 @@ hvac = "^2.3.0"
107107
aws-requests-auth = "^0.4.3"
108108
urllib3 = "<2"
109109
requests = ">=2.32.0"
110-
cfn-lint = "1.33.2"
110+
cfn-lint = "1.34.0"
111111
mypy = "^1.1.1"
112112
types-python-dateutil = "^2.8.19.6"
113113
aws-cdk-aws-appsync-alpha = "^2.59.0a0"

ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,5 @@ runtime-evaluated-base-classes = ["pydantic.BaseModel"]
9898
# Maintenance: we're keeping EphemeralMetrics code in case of Hyrum's law so we can quickly revert it
9999
"aws_lambda_powertools/metrics/metrics.py" = ["ERA001"]
100100
"examples/*" = ["FA100", "TCH"]
101-
"tests/*" = ["FA100", "TCH"]
101+
"tests/*" = ["FA100"]
102102
"aws_lambda_powertools/utilities/parser/models/*" = ["FA100"]

tests/e2e/utils/data_fetcher/traces.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import json
22
from datetime import datetime, timedelta
3-
from typing import Any, Dict, Generator, List, Optional
3+
from typing import TYPE_CHECKING, Any, Dict, Generator, List, Optional
44

55
import boto3
66
from botocore.paginate import PageIterator
77
from mypy_boto3_xray.client import XRayClient
8-
from mypy_boto3_xray.type_defs import TraceSummaryTypeDef
98
from pydantic import BaseModel
109
from retry import retry
1110

11+
if TYPE_CHECKING:
12+
from mypy_boto3_xray.type_defs import TraceSummaryTypeDef
13+
1214

1315
class TraceSubsegment(BaseModel):
14-
id: str # noqa: A003 VNE003 # id is a field we can't change
16+
id: str # noqa: A003 # id is a field we can't change
1517
name: str
1618
start_time: float
1719
end_time: float
@@ -22,7 +24,7 @@ class TraceSubsegment(BaseModel):
2224

2325

2426
class TraceDocument(BaseModel):
25-
id: str # noqa: A003 VNE003 # id is a field we can't change
27+
id: str # noqa: A003 # id is a field we can't change
2628
name: str
2729
start_time: float
2830
end_time: float

tests/functional/batch/required_dependencies/test_utilities_batch.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
process_partial_response,
1919
)
2020
from aws_lambda_powertools.utilities.batch.exceptions import BatchProcessingError, UnexpectedBatchTypeError
21-
from aws_lambda_powertools.utilities.data_classes.dynamo_db_stream_event import (
22-
DynamoDBRecord,
23-
)
2421
from aws_lambda_powertools.utilities.data_classes.kinesis_stream_event import (
2522
KinesisStreamRecord,
2623
)
@@ -31,6 +28,10 @@
3128
if TYPE_CHECKING:
3229
from collections.abc import Awaitable, Callable
3330

31+
from aws_lambda_powertools.utilities.data_classes.dynamo_db_stream_event import (
32+
DynamoDBRecord,
33+
)
34+
3435

3536
@pytest.fixture(scope="module")
3637
def sqs_event_fifo_factory() -> Callable:

tests/functional/event_handler/_pydantic/test_openapi_with_pep563.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from pydantic import BaseModel, Field
4-
from typing_extensions import Annotated
4+
from typing_extensions import Annotated # noqa: TC002
55

66
from aws_lambda_powertools.event_handler.api_gateway import APIGatewayRestResolver
77
from aws_lambda_powertools.event_handler.openapi.models import (

tests/functional/feature_flags/_boto3/test_time_based_actions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
import datetime
4-
from typing import Any
4+
from typing import TYPE_CHECKING, Any
55

66
from botocore.config import Config
77
from dateutil.tz import gettz
@@ -20,7 +20,9 @@
2020
TimeKeys,
2121
TimeValues,
2222
)
23-
from aws_lambda_powertools.utilities.feature_flags.types import JSONType
23+
24+
if TYPE_CHECKING:
25+
from aws_lambda_powertools.utilities.feature_flags.types import JSONType
2426

2527

2628
def evaluate_mocked_schema(

0 commit comments

Comments
 (0)