Skip to content

Commit 63293bf

Browse files
committed
old py compat
1 parent 5a53ad5 commit 63293bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/integrations/clickhouse_driver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
ensure_integration_enabled,
1010
)
1111

12-
from typing import TYPE_CHECKING, Any, TypeVar
12+
from typing import TYPE_CHECKING, Any, Dict, TypeVar
1313

1414
# Hack to get new Python features working in older versions
1515
# without introducing a hard dependency on `typing_extensions`
@@ -169,7 +169,7 @@ def _inner_send_data(*args: P.args, **kwargs: P.kwargs) -> T:
169169
return _inner_send_data
170170

171171

172-
def _get_db_data(connection: clickhouse_driver.connection.Connection) -> dict[str, str]:
172+
def _get_db_data(connection: clickhouse_driver.connection.Connection) -> Dict[str, str]:
173173
return {
174174
SPANDATA.DB_SYSTEM: "clickhouse",
175175
SPANDATA.SERVER_ADDRESS: connection.host,
@@ -179,6 +179,6 @@ def _get_db_data(connection: clickhouse_driver.connection.Connection) -> dict[st
179179
}
180180

181181

182-
def _set_on_span(span: Span, data: dict[str, Any]):
182+
def _set_on_span(span: Span, data: Dict[str, Any]):
183183
for key, value in data.items():
184184
span.set_attribute(key, _serialize_span_attribute(value))

0 commit comments

Comments
 (0)