Skip to content

Commit 44d261b

Browse files
committed
fix type errors
1 parent 7b9a22e commit 44d261b

File tree

1 file changed

+1
-1
lines changed
  • exporter/opentelemetry-exporter-otlp-json-common/src/opentelemetry/exporter/otlp/json/common/_internal

1 file changed

+1
-1
lines changed

exporter/opentelemetry-exporter-otlp-json-common/src/opentelemetry/exporter/otlp/json/common/_internal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _encode_key_value(
110110

111111
def _encode_array(
112112
array: Collection[Any], allow_null: bool = False
113-
) -> list[JSONAnyValue]:
113+
) -> list[JSONAnyValue | None]:
114114
if not allow_null:
115115
# Let the exception get raised by _encode_value()
116116
return [_encode_value(v, allow_null=allow_null) for v in array]

0 commit comments

Comments
 (0)