Skip to content

Commit 7785d43

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

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
@@ -94,6 +94,8 @@ def is_feature_enabled(self, name: str, default_value: bool) -> bool:
9494
# We don't check for an in-flight refresh; the executor queues the task, which is safe.
9595
self._executor.submit(self._refresh_flags)
9696

97+
assert self._flags is not None
98+
9799
# Now, return the value from the populated cache.
98100
flag_value = self._flags.get(name)
99101
if flag_value is None:

0 commit comments

Comments
 (0)