Skip to content

Commit 5098ed9

Browse files
committed
Merge branch 'develop' into setparams
* develop: chore: cleanup, add test for single and nested fix(parameters): make cache aware of single vs multiple calls chore(deps-dev): bump black from 24.1.1 to 24.2.0 (aws-powertools#3760) chore(ci): changelog rebuild (aws-powertools#3858) chore(deps): bump codecov/codecov-action from 4.0.2 to 4.1.0 (aws-powertools#3856) chore(deps): bump squidfunk/mkdocs-material from `43b898a` to `49d1bfd` in /docs (aws-powertools#3857) Signed-off-by: heitorlessa <[email protected]>
2 parents 7783aad + 8704337 commit 5098ed9

File tree

34 files changed

+102
-108
lines changed

34 files changed

+102
-108
lines changed

.github/workflows/quality_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- name: Complexity baseline
7272
run: make complexity-baseline
7373
- name: Upload coverage to Codecov
74-
uses: codecov/codecov-action@0cfda1dd0a4ad9efc75517f399d859cd1ea4ced1 # 4.0.2
74+
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # 4.1.0
7575
with:
7676
file: ./coverage.xml
7777
env_vars: PYTHON

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,37 @@
44
<a name="unreleased"></a>
55
# Unreleased
66

7+
## Maintenance
8+
9+
710

811
<a name="v2.34.2"></a>
912
## [v2.34.2] - 2024-02-26
13+
## Bug Fixes
14+
15+
* **typing:** ensure return type is a str when default_value is set ([#3840](https://github.com/aws-powertools/powertools-lambda-python/issues/3840))
16+
17+
## Documentation
18+
19+
* **install:** make minimum install the default option then extra ([#3834](https://github.com/aws-powertools/powertools-lambda-python/issues/3834))
20+
21+
## Features
22+
23+
* **event-source:** add function to get multi-value query string params by name ([#3846](https://github.com/aws-powertools/powertools-lambda-python/issues/3846))
24+
1025
## Maintenance
1126

1227
* version bump
1328
* **ci:** remove aws-encryption-sdk from Lambda layer due to cffi being tied to python version ([#3853](https://github.com/aws-powertools/powertools-lambda-python/issues/3853))
29+
* **deps:** bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates ([#3844](https://github.com/aws-powertools/powertools-lambda-python/issues/3844))
30+
* **deps:** bump cryptography from 42.0.2 to 42.0.4 ([#3827](https://github.com/aws-powertools/powertools-lambda-python/issues/3827))
31+
* **deps:** bump codecov/codecov-action from 4.0.1 to 4.0.2 ([#3842](https://github.com/aws-powertools/powertools-lambda-python/issues/3842))
32+
* **deps:** bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates ([#3835](https://github.com/aws-powertools/powertools-lambda-python/issues/3835))
33+
* **deps-dev:** bump httpx from 0.26.0 to 0.27.0 ([#3828](https://github.com/aws-powertools/powertools-lambda-python/issues/3828))
34+
* **deps-dev:** bump aws-cdk from 2.128.0 to 2.129.0 ([#3831](https://github.com/aws-powertools/powertools-lambda-python/issues/3831))
35+
* **deps-dev:** bump the boto-typing group with 1 update ([#3836](https://github.com/aws-powertools/powertools-lambda-python/issues/3836))
36+
* **deps-dev:** bump aws-cdk from 2.129.0 to 2.130.0 ([#3843](https://github.com/aws-powertools/powertools-lambda-python/issues/3843))
37+
* **deps-dev:** bump aws-cdk-lib from 2.128.0 to 2.130.0 ([#3838](https://github.com/aws-powertools/powertools-lambda-python/issues/3838))
1438

1539

1640
<a name="v2.34.1"></a>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Logging utility
22
"""
3+
34
from .logger import Logger
45

56
__all__ = ["Logger"]

aws_lambda_powertools/logging/logger.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,7 @@ def inject_lambda_context(
345345
log_event: Optional[bool] = None,
346346
correlation_id_path: Optional[str] = None,
347347
clear_state: Optional[bool] = False,
348-
) -> AnyCallableT:
349-
...
348+
) -> AnyCallableT: ...
350349

351350
@overload
352351
def inject_lambda_context(
@@ -355,8 +354,7 @@ def inject_lambda_context(
355354
log_event: Optional[bool] = None,
356355
correlation_id_path: Optional[str] = None,
357356
clear_state: Optional[bool] = False,
358-
) -> Callable[[AnyCallableT], AnyCallableT]:
359-
...
357+
) -> Callable[[AnyCallableT], AnyCallableT]: ...
360358

361359
def inject_lambda_context(
362360
self,

aws_lambda_powertools/metrics/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""CloudWatch Embedded Metric Format utility
22
"""
3+
34
from aws_lambda_powertools.metrics.base import MetricResolution, MetricUnit, single_metric
45
from aws_lambda_powertools.metrics.exceptions import (
56
MetricResolutionError,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
""" Utilities to enhance middlewares """
2+
23
from .factory import lambda_handler_decorator
34

45
__all__ = ["lambda_handler_decorator"]

aws_lambda_powertools/shared/functions.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,15 @@ def resolve_max_age(env: str, choice: Optional[int]) -> int:
5757

5858

5959
@overload
60-
def resolve_env_var_choice(env: Optional[str], choice: float) -> float:
61-
...
60+
def resolve_env_var_choice(env: Optional[str], choice: float) -> float: ...
6261

6362

6463
@overload
65-
def resolve_env_var_choice(env: Optional[str], choice: str) -> str:
66-
...
64+
def resolve_env_var_choice(env: Optional[str], choice: str) -> str: ...
6765

6866

6967
@overload
70-
def resolve_env_var_choice(env: Optional[str], choice: Optional[str]) -> str:
71-
...
68+
def resolve_env_var_choice(env: Optional[str], choice: Optional[str]) -> str: ...
7269

7370

7471
def resolve_env_var_choice(

aws_lambda_powertools/tracing/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Tracing utility
22
"""
33

4-
54
from .extensions import aiohttp_trace_config
65
from .tracer import Tracer
76

aws_lambda_powertools/tracing/tracer.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,17 +345,15 @@ def decorate(event, context, **kwargs):
345345

346346
# see #465
347347
@overload
348-
def capture_method(self, method: "AnyCallableT") -> "AnyCallableT":
349-
... # pragma: no cover
348+
def capture_method(self, method: "AnyCallableT") -> "AnyCallableT": ... # pragma: no cover
350349

351350
@overload
352351
def capture_method(
353352
self,
354353
method: None = None,
355354
capture_response: Optional[bool] = None,
356355
capture_error: Optional[bool] = None,
357-
) -> Callable[["AnyCallableT"], "AnyCallableT"]:
358-
... # pragma: no cover
356+
) -> Callable[["AnyCallableT"], "AnyCallableT"]: ... # pragma: no cover
359357

360358
def capture_method(
361359
self,

aws_lambda_powertools/utilities/batch/base.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,15 @@ def _collect_dynamodb_failures(self):
339339
return failures
340340

341341
@overload
342-
def _to_batch_type(self, record: dict, event_type: EventType, model: "BatchTypeModels") -> "BatchTypeModels":
343-
... # pragma: no cover
342+
def _to_batch_type(
343+
self,
344+
record: dict,
345+
event_type: EventType,
346+
model: "BatchTypeModels",
347+
) -> "BatchTypeModels": ... # pragma: no cover
344348

345349
@overload
346-
def _to_batch_type(self, record: dict, event_type: EventType) -> EventSourceDataClassTypes:
347-
... # pragma: no cover
350+
def _to_batch_type(self, record: dict, event_type: EventType) -> EventSourceDataClassTypes: ... # pragma: no cover
348351

349352
def _to_batch_type(self, record: dict, event_type: EventType, model: Optional["BatchTypeModels"] = None):
350353
if model is not None:

0 commit comments

Comments
 (0)