Skip to content

Commit ccc9880

Browse files
committed
fix type errors
1 parent 6a251e9 commit ccc9880

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • exporter/opentelemetry-exporter-otlp-json-common/src/opentelemetry/exporter/otlp/json/common/_internal

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)