Skip to content

Commit bd72658

Browse files
author
Tom McCarthy
committed
chore: formatting
1 parent eaa2231 commit bd72658

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

aws_lambda_powertools/metrics/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ def add_namespace(self, name: str):
7171
name : str
7272
Metric namespace
7373
"""
74-
warnings.warn("add_namespace method is deprecated. Pass service to Metrics constructor instead", DeprecationWarning)
74+
warnings.warn(
75+
"add_namespace method is deprecated. Pass service to Metrics constructor instead", DeprecationWarning
76+
)
7577
if self.namespace is not None:
7678
raise UniqueNamespaceError(
7779
f"Namespace '{self.namespace}' already set - Only one namespace is allowed across metrics"

tests/functional/test_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,4 +501,4 @@ def test_namespace_var_precedence(monkeypatch, capsys, metric, dimension):
501501

502502
# THEN we should add a namespace implicitly
503503
# with the value of POWERTOOLS_METRICS_NAMESPACE env var
504-
assert expected["_aws"] == output["_aws"]
504+
assert expected["_aws"] == output["_aws"]

0 commit comments

Comments
 (0)