Skip to content

Commit 0b9e0d4

Browse files
committed
fix type errors
1 parent bc1b1cb commit 0b9e0d4

File tree

2 files changed

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

2 files changed

+1
-2
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]

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ include = [
117117
"opentelemetry-sdk",
118118
"opentelemetry-proto-json",
119119
"exporter/opentelemetry-exporter-otlp-proto-grpc",
120-
"exporter/opentelemetry-exporter-otlp-json-common",
121120
"codegen/opentelemetry-codegen-json"
122121
]
123122

0 commit comments

Comments
 (0)