Skip to content

Commit a6c9cef

Browse files
committed
Fix typing
1 parent 354de8e commit a6c9cef

File tree

1 file changed

+3
-2
lines changed
  • exporter/opentelemetry-exporter-otlp-proto-common/src/opentelemetry/exporter/otlp/proto/common/_internal/metrics_encoder

1 file changed

+3
-2
lines changed

exporter/opentelemetry-exporter-otlp-proto-common/src/opentelemetry/exporter/otlp/proto/common/_internal/metrics_encoder/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
import logging
15+
from typing import List
1516

1617
from opentelemetry.exporter.otlp.proto.common._internal import (
1718
_encode_attributes,
@@ -345,12 +346,12 @@ def _encode_metric(metric, pb2_metric):
345346
)
346347

347348

348-
def _encode_exemplars(sdk_exemplars: list[Exemplar]) -> list:
349+
def _encode_exemplars(sdk_exemplars: List[Exemplar]) -> List[pb2.Exemplar]:
349350
"""
350351
Converts a list of SDK Exemplars into a list of protobuf Exemplars.
351352
352353
Args:
353-
sdk_exemplars (list): The list of exemplars from the OpenTelemetry SDK.
354+
sdk_exemplars: The list of exemplars from the OpenTelemetry SDK.
354355
355356
Returns:
356357
list: A list of protobuf exemplars.

0 commit comments

Comments
 (0)