Skip to content

Commit 8ba91d8

Browse files
committed
use Callable type annotation on _array helper
Assisted-by: Claude Sonnet 4.6
1 parent 99753f9 commit 8ba91d8

File tree

1 file changed

+3
-3
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/_configuration

1 file changed

+3
-3
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/_configuration/_resource.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from __future__ import annotations
1616

1717
import logging
18-
from typing import Optional
18+
from typing import Callable, Optional
1919
from urllib import parse
2020

2121
from opentelemetry.sdk._configuration.models import (
@@ -38,8 +38,8 @@ def _coerce_bool(value: object) -> bool:
3838
return bool(value)
3939

4040

41-
def _array(coerce: object) -> object:
42-
return lambda value: [coerce(item) for item in value] # type: ignore[operator]
41+
def _array(coerce: Callable) -> Callable:
42+
return lambda value: [coerce(item) for item in value]
4343

4444

4545
# Unified dispatch table for all attribute type coercions

0 commit comments

Comments
 (0)