Skip to content

Commit e827f58

Browse files
Fix typing in metrictestutil.py
1 parent 4cff19c commit e827f58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/opentelemetry-test-utils/src/opentelemetry/test/metrictestutil.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _generate_metric(
4040

4141
def _generate_sum(
4242
name, value, attributes=None, description=None, unit=None
43-
) -> Sum:
43+
) -> Metric:
4444
if attributes is None:
4545
attributes = BoundedAttributes(attributes={"a": 1, "b": True})
4646
return _generate_metric(
@@ -64,7 +64,7 @@ def _generate_sum(
6464

6565
def _generate_gauge(
6666
name, value, attributes=None, description=None, unit=None
67-
) -> Gauge:
67+
) -> Metric:
6868
if attributes is None:
6969
attributes = BoundedAttributes(attributes={"a": 1, "b": True})
7070
return _generate_metric(
@@ -86,7 +86,7 @@ def _generate_gauge(
8686

8787
def _generate_unsupported_metric(
8888
name, attributes=None, description=None, unit=None
89-
) -> Sum:
89+
) -> Metric:
9090
return _generate_metric(
9191
name,
9292
None,

0 commit comments

Comments
 (0)