Skip to content

Commit c47bc73

Browse files
committed
changed type of attribute _executor in TelemetryClientFactory
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent f6bd9ad commit c47bc73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import requests
55
import logging
66
from concurrent.futures import ThreadPoolExecutor
7-
from typing import Dict
7+
from typing import Dict, Optional
88
from databricks.sql.telemetry.models.event import (
99
TelemetryEvent,
1010
DriverSystemConfiguration,
@@ -252,7 +252,7 @@ class TelemetryClientFactory:
252252
_clients: Dict[
253253
str, TelemetryClient
254254
] = {} # Map of connection_uuid -> TelemetryClient
255-
_executor: ThreadPoolExecutor = None
255+
_executor: Optional[ThreadPoolExecutor] = None
256256
_initialized: bool = False
257257
_lock = threading.Lock() # Thread safety for factory operations
258258

0 commit comments

Comments
 (0)