Skip to content

Commit 6c7dc6f

Browse files
dependabot[bot]leandrodamascenaCavalcante Damascena
authored
chore(deps-dev): bump black from 24.1.1 to 24.2.0 (#3760)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leandro Damascena <lcdama@amazon.pt> Co-authored-by: Cavalcante Damascena <lcdama@b0be8355743f.ant.amazon.com>
1 parent 51705b8 commit 6c7dc6f

File tree

31 files changed

+76
-111
lines changed

31 files changed

+76
-111
lines changed
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:

aws_lambda_powertools/utilities/batch/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Batch processing exceptions
33
"""
4+
45
from __future__ import annotations
56

67
import traceback

aws_lambda_powertools/utilities/data_classes/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def get_multi_value_query_string_values(
193193
self,
194194
name: str,
195195
default_values: Optional[List[str]] = None,
196-
) ->List[str]:
196+
) -> List[str]:
197197
"""Get multi-value query string parameter values by name
198198
199199
Parameters

0 commit comments

Comments
 (0)