Skip to content

Commit

Permalink
Update type signature of get_metrics_data() to accept "None" return t…
Browse files Browse the repository at this point in the history
…ype (#4186)
  • Loading branch information
Ali-Alnosairi committed Sep 19, 2024
1 parent 6baea36 commit f15821f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def __init__(

def get_metrics_data(
self,
) -> "opentelemetry.sdk.metrics.export.MetricsData":
) -> Optional["opentelemetry.sdk.metrics.export.MetricsData"]:
"""Reads and returns current metrics from the SDK"""
with self._lock:
self.collect()
Expand Down

0 comments on commit f15821f

Please sign in to comment.