Skip to content

Commit 8046615

Browse files
committed
fix typing for Python 3.8
1 parent 93c9317 commit 8046615

File tree

1 file changed

+2
-1
lines changed
  • ddtrace/contrib/internal/azure_eventhubs

1 file changed

+2
-1
lines changed

ddtrace/contrib/internal/azure_eventhubs/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import Any
22
from typing import List
33
from typing import Optional
4+
from typing import Tuple
45
from typing import Union
56
from uuid import UUID
67

@@ -96,7 +97,7 @@ def handle_event_data_attributes(
9697
event_data_arg_value: Union[
9798
EventData, AmqpAnnotatedMessage, List[Union[EventData, AmqpAnnotatedMessage]], EventDataBatch
9899
],
99-
) -> tuple[Union[str, None], Union[str, None]]:
100+
) -> Tuple[Union[str, None], Union[str, None]]:
100101
if isinstance(event_data_arg_value, EventData):
101102
batch_count = None
102103
message_id = event_data_arg_value.message_id

0 commit comments

Comments
 (0)