Skip to content

Commit 3fda299

Browse files
committed
Fix failing mypy checks
1 parent d3416e5 commit 3fda299

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmdexec/clients/python/src/databricks/sql/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def __init__(self,
189189
self.connection = connection
190190
self.rowcount = -1 # Return -1 as this is not supported
191191
self.buffer_size_bytes = result_buffer_size_bytes
192-
self.active_result_set = None
192+
self.active_result_set[ResultSet, None] = None
193193
self.arraysize = arraysize
194194
# Note that Cursor closed => active result set closed, but not vice versa
195195
self.open = True

cmdexec/clients/python/src/databricks/sql/thrift_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def _check_initial_namespace(self, catalog, schema, response):
308308
if not response.canUseMultipleCatalogs:
309309
raise InvalidServerResponseError(
310310
"Unexpected response from server: Trying to set initial catalog to {}, " +
311-
"but server does not support multiple catalogs.".format(catalog))
311+
"but server does not support multiple catalogs.".format(catalog)) # type: ignore
312312

313313
def _check_session_configuration(self, session_configuration):
314314
# This client expects timetampsAsString to be false, so we do not allow users to modify that

0 commit comments

Comments
 (0)