Skip to content

Commit d03ef4b

Browse files
author
Ran Isenberg
committed
fix: parameters: fix return type to bytes in internal function
1 parent 0348bd6 commit d03ef4b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

aws_lambda_powertools/metrics/metric.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
import logging
33
from contextlib import contextmanager
4-
from typing import Dict, Optional, Union, Generator
4+
from typing import Dict, Generator, Optional, Union
55

66
from .base import MetricManager, MetricUnit
77

@@ -61,7 +61,9 @@ def add_metric(self, name: str, unit: Union[MetricUnit, str], value: float) -> N
6161

6262

6363
@contextmanager
64-
def single_metric(name: str, unit: MetricUnit, value: float, namespace: Optional[str] = None) -> Generator[SingleMetric, None, None]:
64+
def single_metric(
65+
name: str, unit: MetricUnit, value: float, namespace: Optional[str] = None
66+
) -> Generator[SingleMetric, None, None]:
6567
"""Context manager to simplify creation of a single metric
6668
6769
Example

aws_lambda_powertools/utilities/parameters/appconfig.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(
8484

8585
super().__init__()
8686

87-
def _get(self, name: str, **sdk_options) -> str:
87+
def _get(self, name: str, **sdk_options) -> bytes:
8888
"""
8989
Retrieve a parameter value from AWS App config.
9090

0 commit comments

Comments
 (0)