Skip to content

Commit

Permalink
Address python type check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Zhang committed Apr 16, 2024
1 parent a76dc0d commit 7d85b67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/brad/front_end/front_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ def __init__(
callback=self._handle_query_from_flight_sql,
)
)
self._flight_sql_server_session_id = None
self._flight_sql_server_session_id: Optional[SessionId] = None
else:
self._flight_sql_server = None

self._main_thread_loop = None
self._main_thread_loop: Optional[AbstractEventLoop] = None

self._fe_index = fe_index
self._config = config
Expand Down Expand Up @@ -198,6 +198,8 @@ def __init__(
self._is_stub_mode = self._config.stub_mode_path is not None

def _handle_query_from_flight_sql(self, query: str) -> RowList:
assert self._flight_sql_server_session_id is not None

future = asyncio.run_coroutine_threadsafe(
self._run_query_impl(self._flight_sql_server_session_id, query, {}),
self._main_thread_loop,
Expand Down

0 comments on commit 7d85b67

Please sign in to comment.