Skip to content

Commit 6a93815

Browse files
committed
fix log tests
1 parent e2c90e0 commit 6a93815

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/test_logs.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33
import sys
44
import time
5-
from typing import List, Any, Mapping
5+
from typing import List, Any, Mapping, Union
66
import pytest
77
from unittest import mock
88

@@ -19,8 +19,7 @@
1919

2020

2121
def otel_attributes_to_dict(otel_attrs: "Mapping[str, Any]") -> "Mapping[str, Any]":
22-
def _convert_attr(attr):
23-
# type: (Mapping[str, Union[str, float, bool]]) -> Any
22+
def _convert_attr(attr: "Mapping[str, Union[str, float, bool]]") -> "Any":
2423
if attr["type"] == "boolean":
2524
return attr["value"]
2625
if attr["type"] == "double":

0 commit comments

Comments
 (0)