Skip to content

Commit c94dcba

Browse files
committed
Less bold about Dict
1 parent 081fd43 commit c94dcba

File tree

1 file changed

+7
-7
lines changed
  • instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions

1 file changed

+7
-7
lines changed

instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions/types.py

Lines changed: 7 additions & 7 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 Any, Optional, Tuple
18+
from typing import Any, Dict, Optional, Tuple
1919

2020
from opentelemetry._events import EventLogger
2121
from opentelemetry.metrics import Instrument, Meter
@@ -26,11 +26,11 @@
2626
_logger = logging.getLogger(__name__)
2727

2828
_BotoClientT = "botocore.client.BaseClient"
29-
_BotoResultT = dict[str, Any]
29+
_BotoResultT = Dict[str, Any]
3030
_BotoClientErrorT = "botocore.exceptions.ClientError"
3131

32-
_OperationParamsT = dict[str, Any]
33-
_AttributeMapT = dict[str, AttributeValue]
32+
_OperationParamsT = Dict[str, Any]
33+
_AttributeMapT = Dict[str, AttributeValue]
3434

3535

3636
class _AwsSdkCallContext:
@@ -50,7 +50,7 @@ class _AwsSdkCallContext:
5050
span_kind: the kind used to create the span.
5151
"""
5252

53-
def __init__(self, client: _BotoClientT, args: Tuple[str, dict[str, Any]]):
53+
def __init__(self, client: _BotoClientT, args: Tuple[str, Dict[str, Any]]):
5454
operation = args[0]
5555
try:
5656
params = args[1]
@@ -97,7 +97,7 @@ class _BotocoreInstrumentorContext:
9797
def __init__(
9898
self,
9999
event_logger: EventLogger,
100-
metrics: dict[str, Instrument] | None = None,
100+
metrics: Dict[str, Instrument] | None = None,
101101
):
102102
self.event_logger = event_logger
103103
self.metrics = metrics or {}
@@ -138,7 +138,7 @@ def should_end_span_on_exit(self) -> bool: # pylint:disable=no-self-use
138138
"""
139139
return True
140140

141-
def setup_metrics(self, meter: Meter, metrics: dict[str, Instrument]):
141+
def setup_metrics(self, meter: Meter, metrics: Dict[str, Instrument]):
142142
"""Callback which gets invoked to setup metrics.
143143
144144
Extensions might override this function to add to the metrics dictionary all the metrics

0 commit comments

Comments
 (0)