We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99753f9 commit 8ba91d8Copy full SHA for 8ba91d8
1 file changed
opentelemetry-sdk/src/opentelemetry/sdk/_configuration/_resource.py
@@ -15,7 +15,7 @@
15
from __future__ import annotations
16
17
import logging
18
-from typing import Optional
+from typing import Callable, Optional
19
from urllib import parse
20
21
from opentelemetry.sdk._configuration.models import (
@@ -38,8 +38,8 @@ def _coerce_bool(value: object) -> bool:
38
return bool(value)
39
40
41
-def _array(coerce: object) -> object:
42
- return lambda value: [coerce(item) for item in value] # type: ignore[operator]
+def _array(coerce: Callable) -> Callable:
+ return lambda value: [coerce(item) for item in value]
43
44
45
# Unified dispatch table for all attribute type coercions
0 commit comments