Skip to content

Commit f0cdfab

Browse files
committed
fix static type check
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent 7785d43 commit f0cdfab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/databricks/sql/common/feature_flag.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def get_instance(cls, connection: "Connection") -> FeatureFlagsContext:
159159
"""Gets or creates a FeatureFlagsContext for the given connection."""
160160
with cls._lock:
161161
cls._initialize()
162+
assert cls._executor is not None
163+
162164
# Use the unique session ID as the key
163165
key = connection.get_session_id_hex()
164166
if key not in cls._context_map:

0 commit comments

Comments
 (0)